b971dc82cb
The keypair of a server is updated when rebuilding the server with a keypair. This function has been added since API microversion 2.54. However the 'keypairs' of the instance object is not saved when saving the instance object currently. Make the instance object update the 'keypairs' field when saving the instance object. Conflicts: nova/tests/unit/fake_instance.py NOTE(stephenfin): Conflicts are due to change I44ad826f0edb39d770bb3201c675dff78154cbf3 ("partial support for live migration with specific resources"), which initialized the 'migration_context' attribute of the instance created as part of the 'fake_instance_obj' function. Changes: nova/tests/functional/regressions/test_bug_1843708.py NOTE(stephenfin): The 'IntegratedTestBase' and 'InstanceHelperMixin' base classes for functional tests are not fully integrated yet in stable/train, which requires reinventing the wheel somewhat. Change-Id: I8a2726b39d0444de8c35480024078a97430f5d0c Closes-Bug: #1843708 Co-authored-by: Stephen Finucane <stephenfin@redhat.com> (cherry picked from commit |
||
---|---|---|
.. | ||
functional | ||
unit | ||
__init__.py | ||
fixtures.py | ||
json_ref.py |