Red Hat Bugzilla – Bug 852626
aeolus-upgrade on f16 fails with err "Invalid HTTP Return Code: 500,was expecting one of 200"
Last modified: 2012-12-12 10:15:44 EST
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.On fresh f16 test machine do yum install aeolus-all.The below aeolus-version will be installed.
#rpm -qa | grep aeolus
2.aeolus-configure -p ec2,mock
3.copy aeolus and katello repos in yum dir
following aeolus version got installed.
rpm -qa | grep aeolus
5. ./aeolus-upgrade -a
Service 'mongod' can not be running while aeolus-upgrade is in progress
Service 'iwhd' can not be running while aeolus-upgrade is in progress
Service 'postgresql' can not be running while aeolus-upgrade is in progress
Service 'httpd' can not be running while aeolus-upgrade is in progress
Service 'deltacloud-core' can not be running while aeolus-upgrade is in progress
Service 'libvirtd' can not be running while aeolus-upgrade is in progress
Service 'aeolus-conductor' can not be running while aeolus-upgrade is in progress
Service 'conductor-dbomatic' can not be running while aeolus-upgrade is in progress
Service 'imagefactory' can not be running while aeolus-upgrade is in progress
Service 'ntpd' can not be running while aeolus-upgrade is in progress
We will stop all aeolus services using aeolus-services stop.
PROCEED? (y/n): y
Redirecting to /bin/systemctl stop aeolus-services.service
1/3: Migrate aeolus-conductor rails database (0001_migrate_conductor_db.sh)
Executes rake db:migrate for the aeolus-conductor database
Do you want to proceed? (y/n): y
Migrate aeolus-conductor rails database OK.
2/3: Execute aeolus-configure (0002_run_aeolus-configure.sh)
Executes aeolus-configure. Note: this restarts aeolus services. Skip this step if you want to manually run aeolus-configure later.
Do you want to proceed? (y/n): y
Execute aeolus-configure FAILED.
Finished 1 of 3 upgrade steps
second upgrade steps fails with
err: /Stage[main]/Aeolus::Profiles::Common/Aeolus::Conductor::Login[temporary-administrative-user-9969f21b29a6ae590413eabebf9ea7de62341bacbbb3145f]/Web_request[temporary-administrative-user-9969f21b29a6ae590413eabebf9ea7de62341bacbbb3145f-conductor-login]/post: change from to https://localhost/conductor/user_session failed: An exception was raised when invoking web request: Invalid HTTP Return Code: 500,was expecting one of 200 in aeolus_upgrade.log
attaching full upgrade log.
upgrade should be successful
Created attachment 607789 [details]
this might be beside the point, but should you really be running aeolus services during yum update? I don't think we support that, i.e. all testing I've done to date presumes aeolus services stopped before yum update of aeolus-* packages.
I think this might be due to the broken aeolus-upgrade script which attempts to use '/bin/systemctl stop aeolus-services.service' to stop running aeolus (and related) services.
On f16, it silently fails. On RHEL, it complains 'unrecognized service', see https://bugzilla.redhat.com/show_bug.cgi?id=852866
I was unable to replicate the above failure, but I had stopped the running services by invoking 'aeolus-services stop'.
I suspect (but have yet to confirm) that the second step of the upgrade is failing because the upgrade is being done with running services. Working on replicating the error by following your exact steps above.
With the fix to aeolus-upgrade on master as 4ccb08ead9eabb46b3a41cd2c1d9656f5ad010ad I am no longer able to replicate this bug. I believe this bug was caused by services running during aeolus-upgrade because the autostop silently failed. Please advise.
as per Dave's suggestion, this is not happening on RHEL using aeolus-configure-2.8.8-1.el6cf so I'm moving the bug to VERIFIED state.
if the problem is still happening on Fedora, it should be reported against the Fedora component aeolus-configure, not the Cloud Engine product from Red Hat
CloudForms-1.1 shipped with aeolus-conductor-0.13.24-1.el6cf, aeolus-configure- 2.8.11-1.el6cf, imagefactory-1.0.2-1.el6cf, iwhd-1.5-2.el6, and oz-0.8.0-6.el6cf
Marking this bug CLOSED CURRENTRELEASE. Please reopen if the problem has not been addressed in the 1.1 product. As pointed out in comment#5, if the problem remains for Fedora, please file a new bug against aeolus in Fedora.