Ensure upgrades are executed

Prior to this change, big bang upgrades were not being run
when openstack-origin was updated to a new release.

Closes-Bug: #1979553
Change-Id: I5cda72d55b7aba51d087bababa94435e53c2201b
This commit is contained in:
Corey Bryant 2022-06-22 16:25:44 +00:00
parent ff317f99fc
commit e237d6621e
2 changed files with 3 additions and 0 deletions

View File

@ -265,6 +265,7 @@ def render(*args):
'ovsdb-cms.available',
))
octavia_charm.configure_ssl()
octavia_charm.upgrade_if_available(args)
octavia_charm.enable_webserver_site()
octavia_charm.assess_status()
reactive.set_state('config.rendered')

View File

@ -206,6 +206,8 @@ class TestOctaviaHandlers(test_utils.PatchHelper):
('arg1', 'arg2'), 'ovsdb-subordinate.available',
'ovsdb-cms.available')
self.octavia_charm.configure_ssl.assert_called_once_with()
self.octavia_charm.upgrade_if_available.assert_called_once_with(
('arg1', 'arg2'))
self.octavia_charm.enable_webserver_site.assert_called_once_with()
self.octavia_charm.assess_status.assert_called_once_with()
self.set_state.assert_called_once_with('config.rendered')