neutron/neutron/tests/unit
Aaron Rosen 954efa91f0 Add X-Tenant-ID to metadata request
Previously, one could update a port's device_id to be that of
another tenant's instance_id and then be able to retrieve that
instance's metadata. In order to prevent this X-Tenant-ID is now
passed in the metadata request to nova and nova then checks that
X-Tenant-ID also matches the tenant_id for the instance against it's
database to ensure it's not being spoofed.

DocImpact - When upgrading OpenStack nova and neturon, neutron
            should be updated first (and neutron-metadata-agent
            restarted before nova is upgraded) in order to minimize
            downtime. This is because there is also a patch to nova
            which has checks X-Tenant-ID against it's database
            therefore neutron-metadata-agent needs to pass that
            before nova is upgraded for metadata to work.

Change-Id: I2b8fa2f561a7f2914608e68133abf15efa95015a
Closes-Bug: #1235450
2013-12-11 14:47:16 +00:00
..
bigswitch BigSwitch plugin: allow 'external' keyword in router rules 2013-09-17 13:44:45 -07:00
brocade Neutron network delete fails with brocade plugin 2013-09-24 01:32:00 +00:00
cisco Add clear_db to cleanup for TestCiscoNexusPlugin 2013-10-09 10:23:25 -04:00
db Fix access to lifetime dict in update_ipsecpolicy method 2013-10-22 17:16:48 -07:00
embrane Adds support for L3 routing/NAT as a service plugin 2013-09-11 12:12:10 +02:00
extensions Fix H102, H103 Apache 2.0 license hacking check error 2013-08-08 12:46:18 +09:00
hyperv Fixes port status hanging to build status 2013-10-11 10:10:20 +02:00
linuxbridge Fix TypeError: <MagicMock name='LinuxBridgeManager().local_ip' 2013-11-25 06:12:34 -08:00
metaplugin Adds support for L3 routing/NAT as a service plugin 2013-09-11 12:12:10 +02:00
midonet Disassociate floating IPs from port on terminate 2013-10-10 01:37:17 +00:00
ml2 Merge "Fix to not send fdb updates when no port changes" into stable/havana 2013-11-01 05:51:03 +00:00
mlnx change port status only if port is bound to the good host 2013-10-08 11:02:55 -04:00
nec NEC plugin: Fix nec-agent unexpected exit due to RPC exception 2013-10-08 21:01:55 +00:00
nicira Removes unused nvp plugin config param 2013-11-18 13:46:31 -08:00
openvswitch Fix OVS agent reclaims local VLAN 2013-11-22 10:19:30 +00:00
plumgrid Enable authentication between PLUMgrid Director and Plugin 2013-08-26 16:39:38 -07:00
ryu Mocking ryu plugin notifier in ryu plugin test 2013-12-06 00:55:53 +09:00
services Use L3 api from vpn ipsec driver via service plugin 2013-10-11 22:39:18 -04:00
__init__.py Remove last vestiges of nose 2013-08-11 11:15:28 -03:00
_test_extension_portbindings.py Allow None for binding:profile attribute 2013-09-05 01:16:52 +09:00
_test_rootwrap_exec.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
database_stubs.py Use built-in print() instead of print statement 2013-09-21 07:30:33 -07:00
dummy_plugin.py Service Type Framework refactoring 2013-07-25 21:47:30 +04:00
extension_stubs.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_agent_config.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_agent_ext_plugin.py Add agent scheduling for LBaaS namespace agent 2013-07-19 13:25:04 +04:00
test_agent_linux_utils.py Stop popen patch correctly in test_agent_linux_utils 2013-09-13 07:44:40 -07:00
test_agent_netns_cleanup.py Improve dhcp agent structure to support multiple dhcp models 2013-08-23 13:41:31 -07:00
test_agent_ovs_cleanup.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_agent_rpc.py Add l2 population base classes 2013-09-12 01:06:51 +02:00
test_api_api_common.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_api_v2.py Enable Quota DB driver by default 2013-10-08 11:00:56 -04:00
test_api_v2_resource.py Send proper exception info as expected by the neutron client 2013-09-19 17:32:30 +04:00
test_attributes.py Support uncompressed ipv6 address and abbreviated ipv4 address 2013-11-27 22:09:00 +08:00
test_auth.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_common_log.py Make neutron.common.log.log print module path 2013-09-07 02:10:57 +09:00
test_common_utils.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_config.py Remove DHCP lease logic 2013-08-12 16:55:48 -07:00
test_db_migration.py Add support for service plugins to the migration framework 2013-08-09 14:08:27 +04:00
test_db_plugin.py Fix IP recycling on exhausted pool 2013-10-16 10:40:03 -04:00
test_db_rpc_base.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_debug_commands.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_dhcp_agent.py Fix dhcp_release lease race condition 2013-10-10 11:10:45 -07:00
test_extension_allowedaddresspairs.py Use built-in print() instead of print statement 2013-09-21 07:30:33 -07:00
test_extension_ext_gw_mode.py Adds support for L3 routing/NAT as a service plugin 2013-09-11 12:12:10 +02:00
test_extension_ext_net.py Adds support for L3 routing/NAT as a service plugin 2013-09-11 12:12:10 +02:00
test_extension_extended_attribute.py Enable Quota DB driver by default 2013-10-08 11:00:56 -04:00
test_extension_extradhcpopts.py bp: pxeboot-port, provide pxeboot on ports 2013-09-11 14:51:55 -06:00
test_extension_extraroute.py Adds support for L3 routing/NAT as a service plugin 2013-09-11 12:12:10 +02:00
test_extension_firewall.py Support uncompressed ipv6 address and abbreviated ipv4 address 2013-11-27 22:09:00 +08:00
test_extension_pnet.py Enable Quota DB driver by default 2013-10-08 11:00:56 -04:00
test_extension_portsecurity.py Avoid performing extra query for fetching port security binding 2013-07-31 02:10:35 -07:00
test_extension_security_group.py Change hard coded numbers to constants in security group tests 2013-09-23 10:21:24 -04:00
test_extensions.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_iptables_firewall.py Implement Allowed Address Pairs 2013-09-05 03:53:59 -07:00
test_iptables_manager.py Replace assertEquals with assertEqual 2013-09-06 16:19:07 +08:00
test_l3_agent.py Refactor configuring of floating ips on a router 2013-10-25 16:49:53 +00:00
test_l3_plugin.py Enable Quota DB driver by default 2013-10-08 11:00:56 -04:00
test_legacy.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_linux_daemon.py Merge "Change daemon Pidfile class to not use root_helper" 2013-09-19 21:21:12 +00:00
test_linux_dhcp.py Merge "Change daemon Pidfile class to not use root_helper" 2013-09-19 21:21:12 +00:00
test_linux_external_process.py Change daemon Pidfile class to not use root_helper 2013-09-10 13:04:14 -04:00
test_linux_interface.py Improve dhcp agent structure to support multiple dhcp models 2013-08-23 13:41:31 -07:00
test_linux_ip_lib.py Linux device name can have '@' or ':' characters 2013-11-22 09:33:03 +01:00
test_metadata_agent.py Add X-Tenant-ID to metadata request 2013-12-11 14:47:16 +00:00
test_metadata_namespace_proxy.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_neutron_context.py Flip to pythonic method names for context unit tests 2013-09-21 18:37:31 -07:00
test_neutron_manager.py Add agent scheduling for LBaaS namespace agent 2013-07-19 13:25:04 +04:00
test_policy.py Allow sharing of firewall rules and policies in policy.json 2013-09-13 07:26:22 -07:00
test_provider_configuration.py Fix usage of _fields method in provider_configuration.py 2013-09-23 08:07:16 +04:00
test_quota_ext.py Fallback to Quota Conf Driver if Quotas table is not defined 2013-10-11 19:59:59 -04:00
test_routerserviceinsertion.py Support for NVP advanced FwaaS service 2013-09-17 10:18:22 -07:00
test_security_groups_rpc.py Change hard coded numbers to constants in security group tests 2013-09-23 10:21:24 -04:00
test_servicetype.py Service Type Framework refactoring 2013-07-25 21:47:30 +04:00
test_wsgi.py Creates multiple worker processes for API server 2013-12-04 21:35:39 +00:00
testlib_api.py add portbinding host into vip port 2013-09-25 14:41:31 +08:00