Add a restart of openstack-nova-api after upgrading undercloud
During upgrades testing and as discussed in bug 1558495 the initial overcloud upgrade step (major-upgrade-pacemaker-init.yaml) times out. The fix for now is to restart openstack-nova-api after the undercloud upgrade. Change-Id: Ifd9c2f4bdbca701d655c741ab21da2a571c1dcb5 Closes-Bug: 1558495
This commit is contained in:
parent
309eef1005
commit
a51c7202ef
@ -66,6 +66,8 @@ class TestUndercloudUpgrade(TestPluginV1):
|
||||
mock_subprocess.assert_has_calls(
|
||||
[
|
||||
mock.call(['sudo', 'yum', 'update', '-y']),
|
||||
mock.call('instack-install-undercloud')
|
||||
mock.call('instack-install-undercloud'),
|
||||
mock.call(['sudo', 'systemctl', 'restart',
|
||||
'openstack-nova-api'])
|
||||
]
|
||||
)
|
||||
|
@ -49,3 +49,6 @@ class UpgradeUndercloud(command.Command):
|
||||
|
||||
subprocess.check_call(['sudo', 'yum', 'update', '-y'])
|
||||
subprocess.check_call("instack-install-undercloud")
|
||||
# restart nova-api https://bugzilla.redhat.com/show_bug.cgi?id=1315467
|
||||
subprocess.check_call(['sudo', 'systemctl', 'restart',
|
||||
'openstack-nova-api'])
|
||||
|
Loading…
Reference in New Issue
Block a user