Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1455215

Summary: [RFE] pre-upgrade validation: Check undercloud service status
Product: Red Hat OpenStack Reporter: Florian Fuchs <flfuchs>
Component: openstack-tripleo-validationsAssignee: Marios Andreou <mandreou>
Status: CLOSED EOL QA Contact: Udi Kalifon <ukalifon>
Severity: medium Docs Contact:
Priority: medium    
Version: 12.0 (Pike)CC: augol, beth.white, jjoyce, jrist, jschluet, mcornea, slinaber, tvignaud
Target Milestone: ---Keywords: FutureFeature, TestOnly, Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-7.2.1-0.20170818153714.85b7569.el7ost instack-undercloud-7.2.1-0.20170821194210.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 16:26:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Validation with success status and a warning none

Description Florian Fuchs 2017-05-24 13:21:17 UTC
Upstream blueprint: https://blueprints.launchpad.net/tripleo/+spec/pre-upgrade-validations

Comment 1 Red Hat Bugzilla Rules Engine 2017-05-24 13:23:09 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 2 Red Hat Bugzilla Rules Engine 2017-05-24 13:26:12 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 4 Marios Andreou 2017-07-20 12:19:21 UTC
The review already in trackers at https://review.openstack.org/#/c/462918/ adds the validation itself.

Also adding https://review.openstack.org/#/c/485184/ and the parent review https://review.openstack.org/#/c/474578/ to trackers now. They actually wire up the validation to be executed before and after the undercloud upgrade.

Moving back to assigned until those land.

Comment 5 Marios Andreou 2017-08-18 15:48:50 UTC
the review at https://review.openstack.org/#/c/474578/ is ready to land and adds  validations that run at the end of the undercloud upgrade. It is blocked pending discussion about landing it or bumping to Q, because of the time it is landing. I updated the review with a case for landing it today, copy/pasting here as I'm out for a few days and in case anyone else picks this up and misses the gerrit comment:

So I'll try and make the case for landing this:

1. It is 'upgrade only'... The code added here to invoke and wait for the "post-upgrade" validations is only executed on upgrade. https://review.openstack.org/#/c/474578/11/instack_undercloud/undercloud.py@1673 

2. The validations will not fail an upgrade... When any validations fail, the error messages are collected and displayed, but there is no exception raised https://review.openstack.org/#/c/474578/11/instack_undercloud/undercloud.py@1458 (fail_on_error is false)

3. WRT "critical" - well it depends who you ask :). No, this is not in the critical path to a successful undercloud upgrade. However catching even some subset of problems at this point, before going on to upgrade your overcloud is a (very?) nice thing to have. 

The original request is tracked at https://bugzilla.redhat.com/show_bug.cgi?id=1455215 (about service status, but we landed a bunch of validations with florian. Three of those are post-upgrade see the commit message here for more info. The discussion about pre vs post upgrade validations is in this review discussion above, if you are interested (and there is a related pre upgrade validations in the related reviews. I don't expect that one to land for P, but I think this can). 

So this is a nice enhancement for the (undercloud) upgrade ... and so final reason is indeed this is upgrades related and as such has a legitimate reason for landing late (as usual I expect we will continue to have to land things into stable/pike once it is cut everywhere, for all the last bits anyway).

Finally for an example run see latest undercloud upgrades job at http://logs.openstack.org/78/474578/11/check/gate-tripleo-ci-centos-7-undercloud-upgrades-nv/0306ada/logs/var/log/undercloud_upgrade.txt.gz#_2017-08-16_13_02_03_000 

thanks,

Comment 6 Marios Andreou 2017-08-28 11:05:18 UTC
moving this to POST and fixing reviews in trackers. The validations are wired into the (end of the) undercloud upgrade with https://review.openstack.org/#/c/474578/ which is now merged.

Comment 9 Marios Andreou 2017-09-01 15:31:54 UTC
just posted http://lists.openstack.org/pipermail/openstack-dev/2017-September/121722.html adding here for reference thanks

Comment 15 Jon Schlueter 2018-01-26 15:50:36 UTC
According to our records, this should be resolved by openstack-tripleo-validations-7.4.2-1.el7ost.  This build is available now.

Comment 16 Jon Schlueter 2018-01-26 15:50:41 UTC
According to our records, this should be resolved by instack-undercloud-7.4.3-5.el7ost.  This build is available now.

Comment 18 Udi Kalifon 2018-06-26 06:31:04 UTC
The validator didn't report when the heat service was down on the undercloud. It ran for a very long time and eventually showed a success result when it was supposed to show failure. I'll attach a screenshot.

Comment 19 Udi Kalifon 2018-06-26 06:33:40 UTC
Created attachment 1454556 [details]
Validation with success status and a warning

Attached is a screenshot of the validator when the openstack-heat-engine.service is stopped. The output says: "Warning! The validation did not run on any host."