Version:

Just did a git pull on provision, so that's at HEAD. Just did a hostmaster-migrate to update hostmaster and hosting

Setup:

Frontend VM uses a local mysql db (prod-040-cms)

Webserver VM uses remote mysql dbs. /etc/hosts contains entries like 'sierra3080.drupal.local' which point to multiple mysql instances running on the same host at different ports.

Problem:

I clone site004 to site0012 and select the site's present platform and present db server (sierra3080). (clone00.png, clone01.png)

The clone, import process works

Looking at the Aegir node for site0012 I see that the db server says "prod-040-cms" (which is the db server for this frontend installation). (clone02.png)

On the web server sql-conf shows that the db is really on sierra3080 as I expected:

[app_aegir@dev-100-cms drupal-6.19]$ php ~/drush/drush.php sql-conf -l site0012.p040.localhost
Array
(
    [driver] => mysql
    [username] => site0012p040loca
    [port] => 3080
    [host] => sierra3080.drupal.local
    [database] => site0012p040loca
)

Seems to just be a problem in the Hosting UI.

CommentFileSizeAuthor
#2 migrate01.png33.16 KBbwood
clone02.png45.63 KBbwood
clone01.png25.85 KBbwood
clone00.png45.23 KBbwood

Comments

bwood’s picture

This also happens if I:

* clone a site and select same platform, new db server
* clone a site and select new platform, same db server
* clone a site and select new platform, new db server

bwood’s picture

StatusFileSize
new33.16 KB

If I then select Migrate for site0012 the popup appears with the radio button for prod-040-cms selected as the db server. (migrate01.png). If select a new db server and proceed with the migration it works and the new db server is reflected both in the UI and via drush sql-conf.

adrian’s picture

Status: Active » Needs review

i think this is because we do an import after the site is cloned, and there was some subtle issues with the import logic.

this should fix it -

[master c0a391a] Import changes so db_server doesnt get clobbered - #911392
1 files changed, 2 insertions(+), 3 deletions(-)

bwood’s picture

Status: Needs review » Reviewed & tested by the community

This works. Thanks Adrian!

Anonymous’s picture

Status: Reviewed & tested by the community » Fixed

I'll mark this as fixed since it went into git for review anyway

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit dd9a599 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by adrian:
    Import changes so db_server doesnt get clobbered - #911392
    

  • Commit dd9a599 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by adrian:
    Import changes so db_server doesnt get clobbered - #911392