Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1362641 - [Docs] [Director] Compute upgrade (7 to 8) fails without sourcing stackrc or overcloudrc between overcloud nova enable and
Summary: [Docs] [Director] Compute upgrade (7 to 8) fails without sourcing stackrc or ...
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
Target Milestone: ga
: 10.0 (Newton)
Assignee: Dan Macpherson
QA Contact: RHOS Documentation Team
Depends On:
TreeView+ depends on / blocked
Reported: 2016-08-02 18:07 UTC by John Fulton
Modified: 2016-12-29 16:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2016-10-31 13:35:09 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description John Fulton 2016-08-02 18:07:40 UTC
* Description of problem:

OSP8's "Director Installation and Usage" Chapter 10.4, "Upgrading the Overcloud", Step 4, "Upgrade each Compute node" [1], has the user run `nova service-disable`, ``, and then `nova service-enable`. This is fine, but it does not have the user source the overcloudrc before enabling or disabling the overcloud's compute service or source the stackrc before upgrading the undercloud's compute node (they're the same node but from a different context). What is in the doc does not work for me unless I source them in between [2]. Could the doc be updated to include sourcing the appropriate environment files in between the steps? 


source ~/stackrc
declare -A id_to_host
while read id hostname; do
done < <(nova list | grep compute | awk {'print $2,$4'} )

for id in "${!id_to_host[@]}"; do
    source ~/overcloudrc
    nova service-disable $hostname.localdomain nova-compute
    source ~/stackrc --upgrade $id
    source ~/overcloudrc
    nova service-enable $hostname.localdomain nova-compute

* Version-Release number: Revision 8.0-0 Tue Nov 24 2015 Dan Macpherson
* How reproducible: deterministic
* Steps to Reproduce: follow document as written
* Actual results: compute nodes are not upgraded 
* Expected results: compute nodes are upgraded

Comment 6 Dan Macpherson 2016-10-19 03:38:51 UTC
Hi John,

This should be fixed now:

Was there anything else required for this BZ?

Comment 7 John Fulton 2016-10-19 14:15:13 UTC

It does not look fixed to me. 

Perhaps the fix is not in the document you linked above? I see runnings of the and runnings of the nova service-disable command but there is no sourcing of the stackrc of overcloudrc. 


Comment 9 John Fulton 2016-10-31 13:28:15 UTC
Looks good to me. Thanks Dan.

Comment 10 Dan Macpherson 2016-10-31 13:35:09 UTC
Thanks, John. Closing this BZ.

Note You need to log in before you can comment on or make changes to this bug.