Bug 1323700
| Summary: | upgrade-non-controller.sh --query doesn't report the upgrade status | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Marius Cornea <mcornea> |
| Component: | openstack-tripleo-common | Assignee: | Marios Andreou <mandreou> |
| Status: | CLOSED ERRATA | QA Contact: | Marius Cornea <mcornea> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 (Liberty) | CC: | dbecker, dnavale, jcoufal, jschluet, mandreou, mburns, mlammon, morazi, rhel-osp-director-maint, slinaber |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 10.0 (Newton) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-common-5.2.1-0.20161007114757.cc19d04.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
Previously, in the OpenStack Director, the 'upgrade-non-controller.sh' script used by an operator on the Undercloud to upgrade the non-controller nodes as a part of the major upgrade workflow did not report the upgrade status when the '--query' option was used. As a result, the '--query' option did not work as documented by the '-h' helptext.
With this update, the '--query' option now provides the last few lines of the 'yum.log' file from the given node as an indication of the upgrade status. Also, the script now accepts the long and short versions for each of the options ('-q' and '--query'). As a result, the 'upgrade-non-controller.sh' script is now improved to provide at least some indication of the node upgrade status.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-14 15:29:44 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: | |||
|
Description
Marius Cornea
2016-04-04 13:07:27 UTC
This bug did not make the OSP 8.0 release. It is being deferred to OSP 10. This was fixed in https://review.openstack.org/#/c/324546/ . It is definitely available in 10 (confirmed today on my undercloud... with openstack-tripleo-common-5.2.1-0.20160930181658.40ad7e5.el7ost.noarch ) moving to POST so now upgrade-non-controller -q does _something_ and the helptext is more accurate: [stack@instack ~]$ upgrade-non-controller.sh -h Usage: upgrade-non-controller.sh Options: -h|--help -- print this help. -u|--upgrade <nova node> -- nova node name or id to upgrade -s|--script <absolute_path> -- absolute path to the script you wish to use for the upgrade -q|--query <nova node> -- determine if the node is ACTIVE and has the upgrade script. Also, tail yum.log for any package update info Invoke the tripleo upgrade script on non controller nodes as part of the tripleo upgrade workflow. [stack@instack ~]$ upgrade-non-controller.sh -q overcloud-compute-0 Fri Oct 14 12:01:22 EDT 2016 upgrade-non-controller.sh nova node overcloud-compute-0 found with status ACTIVE Fri Oct 14 12:01:23 EDT 2016 upgrade-non-controller.sh checking for upgrade script /root/tripleo_upgrade_node.sh on node overcloud-compute-0 (192.0.2.15) Fri Oct 14 12:01:23 EDT 2016 upgrade-non-controller.sh upgrade script /root/tripleo_upgrade_node.sh found on node overcloud-compute-0 (192.0.2.15) Fri Oct 14 12:01:24 EDT 2016 upgrade-non-controller.sh We can't remotely tell if the upgrade has run on overcloud-compute-0. Fri Oct 14 12:01:24 EDT 2016 upgrade-non-controller.sh We can check for package updates... trying to tail yum.log on overcloud-compute-0: Oct 14 11:49:04 Installed: rhos-release-1.0.72-1.noarch Oct 14 11:49:37 Installed: wget-1.14-13.el7.x86_64 [stack@instack ~]$ upgrade-non-controller.sh -q overcloud-controller-0 Fri Oct 14 12:00:57 EDT 2016 upgrade-non-controller.sh nova node overcloud-controller-0 found with status ACTIVE Fri Oct 14 12:00:59 EDT 2016 upgrade-non-controller.sh checking for upgrade script /root/tripleo_upgrade_node.sh on node overcloud-controller-0 (192.0.2.13) ls: cannot access /root/tripleo_upgrade_node.sh: No such file or directory This looks resolved now. This checking on a system going from 9->10 [stack@undercloud-0 ~]$ nova list +--------------------------------------+--------------+--------+------------+-------------+---------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+--------------+--------+------------+-------------+---------------------+ | d02b9cf7-eecd-4141-81a4-10836f89f409 | ceph-0 | ACTIVE | - | Running | ctlplane=192.0.2.7 | | dab7c88a-7198-4060-94a7-cb82215f1176 | compute-0 | ACTIVE | - | Running | ctlplane=192.0.2.8 | | 389b8223-6992-43b0-83dd-530d9ed877f7 | controller-0 | ACTIVE | - | Running | ctlplane=192.0.2.10 | | f8baf21b-fbb2-46f7-89ba-5d4fa2b6a940 | controller-1 | ACTIVE | - | Running | ctlplane=192.0.2.9 | | 99a608af-5ecc-46b5-9ab8-b82c72906c9c | controller-2 | ACTIVE | - | Running | ctlplane=192.0.2.11 | +--------------------------------------+--------------+--------+------------+-------------+---------------------+ [stack@undercloud-0 ~]$ upgrade-non-controller.sh --query compute-0 Tue Nov 1 15:30:56 EDT 2016 upgrade-non-controller.sh nova node compute-0 found with status ACTIVE Tue Nov 1 15:30:59 EDT 2016 upgrade-non-controller.sh checking for upgrade script /root/tripleo_upgrade_node.sh on node compute-0 (192.0.2.8) Tue Nov 1 15:30:59 EDT 2016 upgrade-non-controller.sh upgrade script /root/tripleo_upgrade_node.sh found on node compute-0 (192.0.2.8) Tue Nov 1 15:31:02 EDT 2016 upgrade-non-controller.sh We can't remotely tell if the upgrade has run on compute-0. Tue Nov 1 15:31:02 EDT 2016 upgrade-non-controller.sh We can check for package updates... trying to tail yum.log on compute-0: Nov 01 17:44:02 Updated: erlang-os_mon-18.3.4.4-1.el7ost.x86_64 Nov 01 17:44:02 Updated: erlang-eldap-18.3.4.4-1.el7ost.x86_64 Nov 01 17:44:02 Updated: erlang-xmerl-18.3.4.4-1.el7ost.x86_64 Nov 01 17:44:02 Updated: os-apply-config-5.0.0-1.el7ost.noarch Nov 01 17:44:02 Updated: memcached-1.4.25-1.el7ost.x86_64 Nov 01 17:44:02 Updated: python-jsonpointer-1.10-4.1.el7ost.noarch Nov 01 17:44:02 Updated: openstack-utils-2016.1-1.el7ost.noarch Nov 01 17:44:24 Erased: openstack-swift-2.7.0-2.el7ost.noarch Nov 01 17:44:26 Erased: python-pyasn1-modules-0.1.9-1.el7ost.noarch Nov 01 17:44:27 Erased: 1:ceph-0.94.9-3.el7cp.x86_64 [stack@undercloud-0 ~]$ rpm -qa | grep openstack-tripleo-common openstack-tripleo-common-5.3.0-3.el7ost.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2948.html |