test_bulk_create_delete_subnet fail in parallel mode

Bug #1235029 reported by Bhuvan Arumugam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Invalid
Undecided
Unassigned

Bug Description

If the node has 2 CPUs, the testr is run in parallel mode automatically. The test_networks suite create a subnet in setupClass() and fail when it execute test_bulk_create_delete_subnet test. It attempt to create the subnet with same cidr 10.100.0.0/28 which was previously created. I presume the subnet with same cidr was created from setupClass() method.

The issue doesn't occur if we use --serial switch to testr. tempest is supposed to run in parallel mode and this test should be fixed to use different cidr.

======================================================================
FAIL: tempest.api.network.test_networks.BulkNetworkOpsJSON.test_bulk_create_delete_subnet[gate,smoke]
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{
2013-10-03 23:27:58,315 Request: POST http://mr-neutron.isg.apple.com:9696/v2.0/subnets
2013-10-03 23:27:58,630 Response Status: 400
}}}

Traceback (most recent call last):
  File "/Volumes/apple/openstack/tempest/tempest/api/network/test_networks.py", line 316, in test_bulk_create_delete_subnet
    resp, body = self.client.create_bulk_subnet(subnet_list)
  File "/Volumes/apple/openstack/tempest/tempest/services/network/json/network_client.py", line 372, in create_bulk_subnet
    resp, body = self.post(uri, headers=self.headers, body=body)
  File "/Volumes/apple/openstack/tempest/tempest/common/rest_client.py", line 302, in post
    return self.request('POST', url, headers, body)
  File "/Volumes/apple/openstack/tempest/tempest/common/rest_client.py", line 436, in request
    resp, resp_body)
  File "/Volumes/apple/openstack/tempest/tempest/common/rest_client.py", line 486, in _error_checker
    raise exceptions.BadRequest(resp_body)
BadRequest: Bad request
Details: {u'NeutronError': u'Invalid input for operation: Requested subnet with cidr: 10.100.0.0/28 for network: 9b50f74e-7778-43b4-98f1-adbd6775768f overlaps with another subnet.'}

Revision history for this message
Zhikun Liu (zhikunliu) wrote : AUTO: Zhi Kun ZK Liu is on vacation

I am out of the office until 10/07/2013.

I will take vacation from 28th Sep to 7th Oct . If have any urgent, please
call 13910806810

Note: This is an automated response to your message "[Bug 1235029] [NEW]
test_bulk_create_delete_subnet fail in parallel mode" sent on 10/04/2013
8:19:59.

This is the only notification you will receive while this person is away.

Revision history for this message
Mh Raies (raiesmh08) wrote :

I think in the /etc/neutron/neutron.conf file, your setting is as -
allow_overlapping_ips = False

if it is "True", you can use the same cidr in two different net.
Thus it seems to me more an environment bug.

Revision history for this message
Mh Raies (raiesmh08) wrote :

Bhuvan Arumugam

Will you please confirm above ?

Revision history for this message
Bhuvan Arumugam (bhuvan) wrote :

We use OL6.3. overlapping IPs don't work with this distro. FWIW OL6 still use kernel 2.6.39.

If this flag is enabled, neutron use ip command with netns argument which doesn't exist until iproute 3.1.0. We use iproute 2.6 with OL6 and it doesn't have support for network namespace.

Tempest shouldn't depend on this flag. This test should be fixed to create network with different cidr, I think.

Revision history for this message
Bhuvan Arumugam (bhuvan) wrote :

Nevermind. It was due to data mismatch between nvp and neutron. After fixing it, this test pass in parallel mode.

Changed in tempest:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.