nova/nova/tests/functional
Balazs Gibizer 4cb493fe4f Use admin neutron client to see if instance has qos ports
The nova-api checks at each move* operation if the instance has qos port
attached as not all the move operations are supported for such servers.
Nova uses the request context to initialize the neutron client for the
port query. However neutron does not return the value of the
resource_request of the port if it is queried with a non admin client.
This causes that if the move operation is initiated by a non admin
then nova thinks that the ports do not have resource request.

This patch creates an admin context for this neutron query.

The new functional tests are not added before this patch in a regression
test like way as existing functional tests are reused with different
setup and doing that without the fix causes a lot of different failure
scenarios.

Note that neutron fixture is changed to simulate the different behavior
in case of different request context are used to initialize the client.

*: Note that Id5f2f4f22b856c989e2eef8ed56b9829d1bcefb6 removed the check
   for evacuate in Ussuri but exists in Train and Stein.

Conflicts:
      nova/tests/fixtures.py
Due to d2d4317e1a is missing from
stable/train

Another difference from the original patch is in
nova/api/openstack/compute/evacuate.py due to
Id5f2f4f22b856c989e2eef8ed56b9829d1bcefb6 is only merged in Ussuri.

Change-Id: I3cf6eb4654663865d9258c38f05cd05974ffcf9d
Closes-Bug: #1850280
(cherry picked from commit 8999769605)
2019-11-13 13:40:59 +01:00
..
api Include both VCPU and PCPU in core quota count 2019-09-18 00:21:10 +01:00
api_sample_tests Reduce scope of 'path' query parameter to noVNC consoles 2019-10-01 22:16:42 +00:00
compute Error out interrupted builds 2019-10-08 06:53:48 +00:00
db DB API changes to get non-matching aggregates from metadata 2019-09-12 16:56:32 -05:00
libvirt Add reshaper for PCPU 2019-09-18 00:21:10 +01:00
notification_sample_tests Fix a misuse of assertGreaterEqual 2019-09-13 20:11:15 +09:00
regressions Fix listing deleted servers with a marker 2019-10-23 14:50:06 -04:00
wsgi Merge "Sync COMPUTE_STATUS_DISABLED from API" 2019-07-09 17:32:03 +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 Use admin neutron client to see if instance has qos ports 2019-11-13 13:40:59 +01: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 Fup for the bandwidth series 2019-02-27 10:23:15 +01: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_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 Merge "Remove global state from the FakeDriver" 2019-06-27 17:50:11 +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