Description of problem: During an OSP12 to OSP13 upgrade the following prevalidation check fails: - name: "PreUpgrade step0,validation: Check if nova_wsgi is running" tags: step0,validation shell: systemctl status 'httpd' | grep -q 'nova' when: httpd_enabled.rc == 0 and httpd_running.rc == 0 But on OSP12 nova_api is already containerized. # systemctl status httpd | grep -q nova # echo $? 1 The controller's Apache is running but just not handling that vhost anymore. Version-Release number of selected component (if applicable): openstack-tripleo-heat-templates-7.0.12-17.el7ost How reproducible: 100% Steps to Reproduce: 1. On a OSP12 environment run 'systemctl status httpd | grep -q nova' && echo $? 2. 3. Actual results: Upgrade fails Expected results: Upgrade should continue Additional info:
For what I can see[1], you are running THT from Pike instead of Queens. When you run an upgrade from 12 to 13 you must have THT from 13 instead 12, thus the validation[2] should work. Please, can you confirm you are following the documentation correctly? [1]: https://github.com/openstack/tripleo-heat-templates/blob/stable/pike/docker/services/nova-api.yaml#L385 [2]: https://github.com/openstack/tripleo-heat-templates/blob/stable/queens/docker/services/nova-api.yaml#L378
I'm sorry I don't know why I put the wrong version the client is using: It should be openstack-tripleo-heat-templates-8.0.7-4.el7ost [ggrimaux@collab-shell undercloud]$ grep openstack-tripleo-heat-templates installed-rpms openstack-tripleo-heat-templates-8.0.7-4.el7ost.noarch Fri Dec 7 10:33:21 2018 So it's for OSP13 as it should. Thank you.
Please feel free to reopen this in the future if you have issues upgrading THT.
Can you double confirm that this deployment was never upgraded before? Thanks!
This was done on a new OSP12 installation. Not upgraded from OSP11 to OSP12 previously. I confirmed it with the client. Thank you!
After checking the templates I'm not able to spot why the deployment failed in this way, eve if its working it should be in that way. So after checking that the services are actually running under apache `httpd -t -D DUMP_VHOSTS | grep -q 'nova'` and `systemctl is-active --quiet openstack-nova-api` We should proceed to disable them `sudo systemctl stop openstack-nova-api` and `sudo systemctl disable openstack-nova-api`. This will make the service still run from the container and the validation should pass. In my opinion, when running the Overcloud upgrade for going to 12->13 we should not skip the pre-upgrade validations.
Closing this BZ as it is not reproducible with latest THT templates. Please feel free to reopen this in the future if you have face this issue again.