Red Hat Bugzilla – Bug 844238
migrate fails with scalable app embedding mysql when RECREATE_HTTPD_PROXY_CART_TYPES is configured
Last modified: 2015-05-14 22:02:01 EDT
Description of problem:
create scalable applications with mysql embedded, ssh into devenv, upgrade and migrate, when RECREATE_HTTPD_PROXY_CART_TYPES is configured in /usr/bin/rhc-admin-migrate, the migrate fails due to node execution failure
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create a scalable app with mysql embedded
2.ssh into devenv, upgrade devenv to latest
3.Run migrate-mongo-2.0.15 before migrate(specially required in sprint 15)
4.Edit /usr/bin/rhc-admin-migrate, set RECREATE_HTTPD_PROXY_CART_TYPES = nil
5.rhc-admin-migrate --version 2.0.15
Failed to migrate with cmd: '/usr/bin/rhc-admin-migrate --rhlogin 'firstname.lastname@example.org' --migrate-gear 'd46cd5bcfaac40bcbb5dfd906f27fea8' --app-name 'php1' --version '2.0.15'' after 2 tries with exception: Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support.
/var/log/mcollective.log has the error messages:
Failed to restart master httpd, please contact support
Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 65 of /etc/httpd/conf.d/000000_default.conf: Syntax error on line 4 of /etc/httpd/conf.d/stickshift/6fd037f5970e4d07aedc236db91be1d6_1920mig_6fd037f597.conf: Include directory '/etc/httpd/conf.d/stickshift/6fd037f5970e4d07aedc236db91be1d6_1920mig_6fd037f597' not found
Under /etc/httpd/conf.d/stickshift/ , there is only 6fd037f5970e4d07aedc236db91be1d6_1920mig_6fd037f597.conf, its corresponding directory is missing, failed to recreate the directory when using RECREATE_HTTPD_PROXY_CART_TYPES
Migrate should run successfully
There was potentially a few other issues with RECREATE_HTTPD_PROXY_CART_TYPES and we don't really need the function right now. So I went ahead and removed it.
Verified on devevn_1922
1.Launch a old instance, currently devenv-stage_226
2.Create applications before upprade
3.Upgrade devenv to latest
4.Check /usr/bin/rhc-admin-migrate, RECREATE_HTTPD_PROXY_CART_TYPES option is removed.
rhc-admin-migrate --version 2.0.15
Command runs successfully without errors.