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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | migrate01.png | 33.16 KB | bwood |
| clone02.png | 45.63 KB | bwood | |
| clone01.png | 25.85 KB | bwood | |
| clone00.png | 45.23 KB | bwood |
Comments
Comment #1
bwood commentedThis 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
Comment #2
bwood commentedIf 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.
Comment #3
adrian commentedi 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(-)
Comment #4
bwood commentedThis works. Thanks Adrian!
Comment #5
Anonymous (not verified) commentedI'll mark this as fixed since it went into git for review anyway