Merge "Update nova microversion for volume backed instance rebuild"
This commit is contained in:
commit
469fa370a2
@ -226,7 +226,7 @@ class API(base.Base):
|
||||
return result
|
||||
|
||||
def reimage_volume(self, context, server_ids, volume_id):
|
||||
api_version = '2.91'
|
||||
api_version = '2.93'
|
||||
events = [self._get_volume_reimaged_event(server_id, volume_id)
|
||||
for server_id in server_ids]
|
||||
result = self._send_events(context, events, api_version=api_version)
|
||||
|
@ -295,7 +295,7 @@ class NovaApiTestCase(test.TestCase):
|
||||
|
||||
mock_novaclient.assert_called_once_with(self.ctx,
|
||||
privileged_user=True,
|
||||
api_version='2.91')
|
||||
api_version='2.93')
|
||||
mock_create_event.assert_called_once_with([
|
||||
{'name': 'volume-reimaged',
|
||||
'server_uuid': 'server-id-1',
|
||||
@ -323,7 +323,7 @@ class NovaApiTestCase(test.TestCase):
|
||||
|
||||
mock_novaclient.assert_called_once_with(self.ctx,
|
||||
privileged_user=True,
|
||||
api_version='2.91')
|
||||
api_version='2.93')
|
||||
mock_create.assert_called_once_with(
|
||||
self.ctx,
|
||||
message_field.Action.REIMAGE_VOLUME,
|
||||
|
Loading…
x
Reference in New Issue
Block a user