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:
marios 2016-03-17 13:16:24 +02:00
parent 309eef1005
commit a51c7202ef
2 changed files with 6 additions and 1 deletions

View File

@ -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'])
]
)

View File

@ -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'])