nova/nova/tests/functional
root 5a6fd88f7a Set migrate_data.vifs only when using multiple port bindings
In the rocky cycle nova was enhanced to support the multiple
port binding live migration workflow when neutron supports
the binding-extended API extension.
When the migration_data object was extended to support
multiple port bindings, populating the vifs field was used
as a sentinel to indicate that the new workflow should
be used.

In the train release
I734cc01dce13f9e75a16639faf890ddb1661b7eb
(SR-IOV Live migration indirect port support)
broke the semantics of the migrate_data object by
unconditionally populating the vifs field

This change restores the rocky semantics, which are depended
on by several parts of the code base, by only conditionally
populating vifs if neutron supports multiple port bindings.

Changes to patch:
  - unit/virt/libvirt/fakelibvirt.py: Include partial pick from
    change Ia3d7351c1805d98bcb799ab0375673c7f1cb8848 to add the
    jobStats, complete_job and fail_job to fakelibvirt. The full
    change was not cherry-picked as it was part of the numa aware
    live migration feature in Victoria.
  - renamed import of nova.network.neutron to
    nova.network.neutronv2.api
  - mocked nova.virt.libvirt.guest.Guest.get_job_info to return
    fakelibvirt.VIR_DOMAIN_JOB_COMPLETED
  - replaced from urllib import parse as urlparse with
    import six.moves.urllib.parse as urlparse for py2.7

Conflicts:
    nova/tests/functional/regressions/test_bug_1888395.py
    nova/tests/unit/compute/test_compute.py
    nova/tests/unit/compute/test_compute_mgr.py
    nova/tests/unit/virt/test_virt_drivers.py

Co-Authored-By: Sean Mooney <work@seanmooney.info>
Change-Id: Ia00277ac8a68a635db85f9e0ce2c6d8df396e0d8
Closes-Bug: #1888395
(cherry picked from commit b8f3be6b3c)
(cherry picked from commit afa843c8a7)
2021-04-07 16:08:03 +00:00
..
api Include both VCPU and PCPU in core quota count 2019-09-18 00:21:10 +01:00
api_sample_tests Fix os-keypairs pagination links 2020-03-10 15:39:14 +00:00
compute Error out interrupted builds 2019-10-08 06:53:48 +00:00
db Prevent archiving of pci_devices records because of 'instance_uuid' 2020-11-02 17:56:12 +00:00
libvirt Update pci stat pools based on PCI device changes 2021-01-11 13:06:24 +05:30
notification_sample_tests Ensure source service is up before resizing/migrating 2020-01-16 16:11:48 +00:00
regressions Set migrate_data.vifs only when using multiple port bindings 2021-04-07 16:08:03 +00:00
wsgi Ensure source service is up before resizing/migrating 2020-01-16 16:11:48 +00:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
api_paste_fixture.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
api_samples_test_base.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
fixtures.py Convert driver supported capabilities to compute node provider traits 2019-02-28 23:28:19 +00:00
integrated_helpers.py Functional test for UnexpectedDeletingTaskStateError 2020-03-05 11:15:28 +00:00
test_aggregates.py Move HostNameWeigher to a common fixture 2019-09-25 09:57:38 +02:00
test_availability_zones.py Remove global state from the FakeDriver 2019-06-21 10:37:20 +02:00
test_boot_from_volume.py Docs and functional test for max_local_block_devices 2019-08-23 12:12:08 -04:00
test_compute_mgr.py Unplug VIFs as part of cleanup of networks 2020-03-05 11:21:36 +00:00
test_conf_max_attach_disk_devices.py Rename CinderFixtureNewAttachFlow to CinderFixture 2019-07-01 16:00:52 -05:00
test_cross_az_attach.py Add functional tests for [cinder]/cross_az_attach=False 2019-09-24 13:23:12 -04:00
test_images.py Share snapshot image membership with instance owner 2019-02-08 18:06:27 -05:00
test_instance_actions.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_json_filter.py Move HostNameWeigher to a common fixture 2019-09-25 09:57:38 +02:00
test_legacy_v2_compatible_wrapper.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_list_servers_ip_filter.py tests: Stop starting consoleauth in functional tests 2019-06-17 15:18:31 +01:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Handle unsetting '[DEFAULT] dhcp_domain' 2019-04-15 15:34:04 -04:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_monkey_patch.py Test for disabling greendns 2020-11-19 15:57:04 +01:00
test_multiattach.py Rename CinderFixtureNewAttachFlow to CinderFixture 2019-07-01 16:00:52 -05:00
test_nova_manage.py nova-manage db archive_deleted_rows is not multi-cell aware 2019-08-27 06:01:58 +00:00
test_report_client.py Use microversion in put allocations in test_report_client 2019-09-02 11:40:35 +01:00
test_server_external_events.py API microversion 2.76: Add 'power-update' external event 2019-08-15 13:19:44 -04:00
test_server_faults.py Replace non-nova server fault message 2019-08-06 10:22:28 -04:00
test_server_group.py Update scheduler instance info at confirm resize 2020-05-19 13:36:06 +00:00
test_servers.py Use admin neutron client to see if instance has qos ports 2019-11-13 13:40:59 +01:00
test_servers_provider_tree.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
test_service.py Reset the cell cache for database access in Service 2020-04-10 22:31:20 +00:00