nova/nova/tests
Takashi NATSUME b971dc82cb objects: Update keypairs when saving an instance
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 086796021b)
(cherry picked from commit aed86ee5d6)
2020-07-23 17:45:46 +01:00
..
functional objects: Update keypairs when saving an instance 2020-07-23 17:45:46 +01:00
unit objects: Update keypairs when saving an instance 2020-07-23 17:45:46 +01:00
__init__.py
fixtures.py Use admin neutron client to see if instance has qos ports 2019-11-13 13:40:59 +01:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00