yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #47488
[Bug 1553595] Re: test_external_network_visibility intermittent failure
Reviewed: https://review.openstack.org/288957
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=391c2327c3b9de0e2b9875bab8d6f6909fa0983a
Submitter: Jenkins
Branch: master
commit 391c2327c3b9de0e2b9875bab8d6f6909fa0983a
Author: Kevin Benton <blak111@xxxxxxxxx>
Date: Sat Mar 5 17:49:48 2016 -0800
Fix API test for external subnet visibility
The test_external_network_visibility test incorrectly
assumes that subnets will never be visible on external
networks. However, this is not true in the case that a
network is both external and shared.
This updates the test to ignore shared networks.
Change-Id: I0219e17d2ec70939039344826d35cb533b3ce065
Closes-Bug: #1553595
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1553595
Title:
test_external_network_visibility intermittent failure
Status in neutron:
Fix Released
Bug description:
Very odd failure:
http://logs.openstack.org/79/288279/3/gate/gate-neutron-dsvm-
api/300ee95/testr_results.html.gz
ft33.1: neutron.tests.api.test_networks.NetworksIpV6TestJSON.test_external_network_visibility[id-af774677-42a9-4e4b-bb58-16fe6a5bc1ec,smoke]_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
2016-03-05 17:07:49,598 11488 INFO [tempest.lib.common.rest_client] Request (NetworksIpV6TestJSON:test_external_network_visibility): 200 GET http://127.0.0.1:9696/v2.0/networks?router%3Aexternal=True 0.232s
2016-03-05 17:07:49,599 11488 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
Body: None
Response - Headers: {'status': '200', 'content-location': 'http://127.0.0.1:9696/v2.0/networks?router%3Aexternal=True', 'content-type': 'application/json; charset=UTF-8', 'connection': 'close', 'x-openstack-request-id': 'req-7c15efb9-e07d-47de-8f49-e77dc2059f57', 'content-length': '1199', 'date': 'Sat, 05 Mar 2016 17:07:49 GMT'}
Body: {"networks": [{"status": "ACTIVE", "router:external": true, "availability_zone_hints": [], "availability_zones": ["nova"], "qos_policy_id": null, "subnets": ["1ee8f3fc-1957-46c6-8a7c-6a5335342871", "068121cc-6ed9-4bdb-8813-35fe689642c2"], "shared": false, "tenant_id": "e118b21bf7a74b36a7e1339918290567", "created_at": "2016-03-05T16:53:27", "tags": [], "ipv6_address_scope": null, "updated_at": "2016-03-05T16:53:27", "is_default": true, "admin_state_up": true, "ipv4_address_scope": null, "port_security_enabled": true, "mtu": 1450, "id": "85a04141-b614-406d-b7d8-912c2a37bc4b", "name": "public"}, {"status": "ACTIVE", "router:external": true, "availability_zone_hints": [], "availability_zones": ["nova"], "qos_policy_id": null, "subnets": ["d3ea9b6d-a20e-48c0-b7ec-50f6239c5199"], "shared": true, "tenant_id": "d6562d45e82f4a85a30dc0cec714e04d", "created_at": "2016-03-05T17:07:31", "tags": [], "ipv6_address_scope": null, "updated_at": "2016-03-05T17:07:31", "is_default": false, "admin_state_up": true, "ipv4_address_scope": "978d5509-cfa9-4753-9ff3-6bb11fdb6f57", "port_security_enabled": true, "mtu": 1450, "id": "a005c6f8-1438-42aa-a86c-68d04796d2e9", "name": "sharednetwork--1158192641"}]}
2016-03-05 17:07:49,947 11488 INFO [tempest.lib.common.rest_client] Request (NetworksIpV6TestJSON:test_external_network_visibility): 200 GET http://127.0.0.1:9696/v2.0/subnets 0.348s
2016-03-05 17:07:49,948 11488 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
Body: None
Response - Headers: {'status': '200', 'content-location': 'http://127.0.0.1:9696/v2.0/subnets', 'content-type': 'application/json; charset=UTF-8', 'connection': 'close', 'x-openstack-request-id': 'req-7a2b800a-eeb9-4c4d-92c8-1e2bf556fb89', 'content-length': '1641', 'date': 'Sat, 05 Mar 2016 17:07:49 GMT'}
Body: {"subnets": [{"name": "", "enable_dhcp": true, "network_id": "a005c6f8-1438-42aa-a86c-68d04796d2e9", "tenant_id": "d6562d45e82f4a85a30dc0cec714e04d", "created_at": "2016-03-05T17:07:35", "dns_nameservers": [], "updated_at": "2016-03-05T17:07:35", "gateway_ip": "8.0.0.1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "8.0.0.2", "end": "8.0.0.14"}], "host_routes": [], "ip_version": 4, "ipv6_address_mode": null, "cidr": "8.0.0.0/28", "id": "d3ea9b6d-a20e-48c0-b7ec-50f6239c5199", "subnetpool_id": "b5058565-3ce7-448c-a581-3411f1aa764b"}, {"name": "tempest-BaseTestCase-467862474-subnet", "enable_dhcp": true, "network_id": "00d56d28-c7c2-4059-b3f5-146e60110b67", "tenant_id": "f3ef1b7cfa324fb29d4ea00646a1bb61", "created_at": "2016-03-05T17:07:37", "dns_nameservers": [], "updated_at": "2016-03-05T17:07:37", "gateway_ip": "10.100.0.1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "10.100.0.2", "end": "10.100.0.14"}], "host_routes": [], "ip_version": 4, "ipv6_address_mode": null, "cidr": "10.100.0.0/28", "id": "08548e7c-5e95-4371-8694-1d4ceba7c2e1", "subnetpool_id": null}, {"name": "", "enable_dhcp": true, "network_id": "d527821a-86b1-4bcc-be1f-7231c8640a60", "tenant_id": "f3ef1b7cfa324fb29d4ea00646a1bb61", "created_at": "2016-03-05T17:07:47", "dns_nameservers": [], "updated_at": "2016-03-05T17:07:47", "gateway_ip": "2003:0:0:ffff::1", "ipv6_ra_mode": null, "allocation_pools": [{"start": "2003:0:0:ffff::2", "end": "2003::ffff:ffff:ffff:ffff:ffff"}], "host_routes": [], "ip_version": 6, "ipv6_address_mode": null, "cidr": "2003:0:0:ffff::/64", "id": "2ae2b2e2-5af1-4044-a962-1cb3eb7781d0", "subnetpool_id": null}]}
}}}
Traceback (most recent call last):
File "neutron/tests/api/test_networks.py", line 425, in test_external_network_visibility
self.assertEmpty(subnets, "Public subnets visible")
File "/tmp/openstack/tempest/tempest/test.py", line 636, in assertEmpty
self.assertTrue(len(list) == 0, msg)
File "/opt/stack/new/neutron/.tox/api-constraints/local/lib/python2.7/site-packages/unittest2/case.py", line 702, in assertTrue
raise self.failureException(msg)
AssertionError: False is not true : Public subnets visible
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1553595/+subscriptions
References