Bug 1042987

Summary: Upgrade of openstack-quantum to openstack-neutron hangs
Product: Red Hat OpenStack Reporter: Terry Wilson <twilson>
Component: openstack-neutronAssignee: Terry Wilson <twilson>
Status: CLOSED ERRATA QA Contact: Ofer Blaut <oblaut>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0CC: apevec, breu, chrisw, hateya, jagee, joseph.breu, lars, lpeer, oblaut, rdekel, rkukura, sclewis, twilson, yeylon
Target Milestone: rcKeywords: OtherQA
Target Release: 4.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-neutron-2013.2-16.el6ost Doc Type: Bug Fix
Doc Text:
Cause: The upgrade script for properly restoring service enablement did not properly handle disabled services. Consequence: Upgrading a grizzly quantum install to neutron when a grizzly service was disabled on the machine could fail. Fix: Specifically generate a chkconfig 'off' command for disabled services. Result: Upgrading from quantum to grizzly with disabled services no longer fails.
Story Points: ---
Clone Of: 1040704 Environment:
Last Closed: 2013-12-20 00:44:40 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:

Comment 1 Terry Wilson 2013-12-13 17:09:36 UTC
As breaking upgrades whenever a service is disabled as bad, setting this urgent for 4.0.

Comment 2 Terry Wilson 2013-12-13 17:47:09 UTC
To test:
1) Install grizzly packstack --allinone
2) chkconfig neutron-server-off
3.a) Set up havana repo and update neutron rpms
 or to quickly verify
3.b) grab the sed script from the spec file (which should match below) and run, ensuring that chkconfig neutron off is output for neutron-server instead of a line just saying 'neutron-server'

chkconfig --type sysv --list|grep ^quantum| \
      sed -re 's/[0-6]:off//g
               s/([0-6]):on\s*/\1/g
               s/quantum/neutron/g
               s/^([a-z0-9-]+)\s+$/chkconfig \1 off/
               s/^([a-z0-9-]+)\s+([0-6]+)/chkconfig --levels \2 \1 on/'

Comment 5 errata-xmlrpc 2013-12-20 00:44:40 UTC
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.

http://rhn.redhat.com/errata/RHEA-2013-1859.html