← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1439164] [NEW] test_snapshot_pattern.py in tempest/scenario causing problem to run other tests

 

Public bug reported:

I written a test case to create a vm in shared network.

https://review.openstack.org/#/c/168910/4/

steps  followed:
   -Create a shared network as a admin
   -Create a router and subnet
   -Create a server
   -Check tenant network connectivity
   -Check public network connectivity

In jenkins test check-tempest-dsvm-neutron-full fails throwing error in
test_snapshot_pattern test

====================================================================================================
2015-04-01 10:46:34.728 | tempest.scenario.test_snapshot_pattern.TestSnapshotPattern.test_snapshot_pattern[compute,id-608e604b-1d63-4a82-8e3e-91bc665c90b4,image,network]
2015-04-01 10:46:34.728 | -----------------------------------------------------------------------------------------------------------------------------------------------
2015-04-01 10:46:34.728 |
2015-04-01 10:46:34.728 | Captured traceback:
2015-04-01 10:46:34.728 | ~~~~~~~~~~~~~~~~~~~
2015-04-01 10:46:34.728 |     Traceback (most recent call last):
2015-04-01 10:46:34.728 |       File "tempest/test.py", line 129, in wrapper
2015-04-01 10:46:34.729 |         return f(self, *func_args, **func_kwargs)
2015-04-01 10:46:34.729 |       File "tempest/scenario/test_snapshot_pattern.py", line 70, in test_snapshot_pattern
2015-04-01 10:46:34.729 |         server = self._boot_image(CONF.compute.image_ref)
2015-04-01 10:46:34.729 |       File "tempest/scenario/test_snapshot_pattern.py", line 45, in _boot_image
2015-04-01 10:46:34.729 |         return self.create_server(image=image_id, create_kwargs=create_kwargs)
2015-04-01 10:46:34.729 |       File "tempest/scenario/manager.py", line 202, in create_server
2015-04-01 10:46:34.729 |         **create_kwargs)
2015-04-01 10:46:34.729 |       File "tempest/services/compute/json/servers_client.py", line 92, in create_server
2015-04-01 10:46:34.729 |         resp, body = self.post('servers', post_body)
2015-04-01 10:46:34.729 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 252, in post
2015-04-01 10:46:34.730 |         return self.request('POST', url, extra_headers, headers, body)
2015-04-01 10:46:34.730 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 629, in request
2015-04-01 10:46:34.730 |         resp, resp_body)
2015-04-01 10:46:34.730 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 680, in _error_checker
2015-04-01 10:46:34.730 |         raise exceptions.BadRequest(resp_body)
2015-04-01 10:46:34.730 |     tempest_lib.exceptions.BadRequest: Bad request
2015-04-01 10:46:34.730 |     Details: {u'message': u'Multiple possible networks found, use a Network ID to be more specific.', u'code': 400}
=====================================================================================================

In test_snapshot_pattern.py there are booting a vm without specifying a
network since i am creating a shared network then conflict  arises while
booting the network since network created as shared will be available to
all the users hence this is a defect .

Expected :
So if we specify the network while booting a vm in test_snapshot_pattern tests this will not raise a conflict while running this test with shared network scenario test.

** Affects: tempest
     Importance: Undecided
         Status: New


** Tags: tempest

** Attachment added: "My review_id --> https://review.openstack.org/#/c/168910/4/";
   https://bugs.launchpad.net/bugs/1439164/+attachment/4362911/+files/bug.txt

** Project changed: neutron => tempest

** Description changed:

  I written a test case to create a vm in shared network.
  
  https://review.openstack.org/#/c/168910/4/
  
  steps  followed:
-    -Create a shared network as a admin
-    -Create a router and subnet
-    -Create a server
-    -Check tenant network connectivity
-    -Check public network connectivity
+    -Create a shared network as a admin
+    -Create a router and subnet
+    -Create a server
+    -Check tenant network connectivity
+    -Check public network connectivity
  
  In jenkins test check-tempest-dsvm-neutron-full fails throwing error in
  test_snapshot_pattern test
  
  ====================================================================================================
  2015-04-01 10:46:34.728 | tempest.scenario.test_snapshot_pattern.TestSnapshotPattern.test_snapshot_pattern[compute,id-608e604b-1d63-4a82-8e3e-91bc665c90b4,image,network]
  2015-04-01 10:46:34.728 | -----------------------------------------------------------------------------------------------------------------------------------------------
- 2015-04-01 10:46:34.728 | 
+ 2015-04-01 10:46:34.728 |
  2015-04-01 10:46:34.728 | Captured traceback:
  2015-04-01 10:46:34.728 | ~~~~~~~~~~~~~~~~~~~
  2015-04-01 10:46:34.728 |     Traceback (most recent call last):
  2015-04-01 10:46:34.728 |       File "tempest/test.py", line 129, in wrapper
  2015-04-01 10:46:34.729 |         return f(self, *func_args, **func_kwargs)
  2015-04-01 10:46:34.729 |       File "tempest/scenario/test_snapshot_pattern.py", line 70, in test_snapshot_pattern
  2015-04-01 10:46:34.729 |         server = self._boot_image(CONF.compute.image_ref)
  2015-04-01 10:46:34.729 |       File "tempest/scenario/test_snapshot_pattern.py", line 45, in _boot_image
  2015-04-01 10:46:34.729 |         return self.create_server(image=image_id, create_kwargs=create_kwargs)
  2015-04-01 10:46:34.729 |       File "tempest/scenario/manager.py", line 202, in create_server
  2015-04-01 10:46:34.729 |         **create_kwargs)
  2015-04-01 10:46:34.729 |       File "tempest/services/compute/json/servers_client.py", line 92, in create_server
  2015-04-01 10:46:34.729 |         resp, body = self.post('servers', post_body)
  2015-04-01 10:46:34.729 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 252, in post
  2015-04-01 10:46:34.730 |         return self.request('POST', url, extra_headers, headers, body)
  2015-04-01 10:46:34.730 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 629, in request
  2015-04-01 10:46:34.730 |         resp, resp_body)
  2015-04-01 10:46:34.730 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 680, in _error_checker
  2015-04-01 10:46:34.730 |         raise exceptions.BadRequest(resp_body)
  2015-04-01 10:46:34.730 |     tempest_lib.exceptions.BadRequest: Bad request
  2015-04-01 10:46:34.730 |     Details: {u'message': u'Multiple possible networks found, use a Network ID to be more specific.', u'code': 400}
  =====================================================================================================
  
  In test_snapshot_pattern.py there are booting a vm without specifying a
  network since i am creating a shared network then conflict  arises while
  booting the network since network created as shared will be available to
  all the users hence this is a defect .
  
  Expected :
- So if we specify the network while booting a vm in test_snapshot_pattern tests this will not raise a conflict while running this test with shared network scenario test
- 
- I can
+ So if we specify the network while booting a vm in test_snapshot_pattern tests this will not raise a conflict while running this test with shared network scenario test.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1439164

Title:
  test_snapshot_pattern.py in tempest/scenario causing problem to run
  other tests

Status in Tempest:
  New

Bug description:
  I written a test case to create a vm in shared network.

  https://review.openstack.org/#/c/168910/4/

  steps  followed:
     -Create a shared network as a admin
     -Create a router and subnet
     -Create a server
     -Check tenant network connectivity
     -Check public network connectivity

  In jenkins test check-tempest-dsvm-neutron-full fails throwing error
  in test_snapshot_pattern test

  ====================================================================================================
  2015-04-01 10:46:34.728 | tempest.scenario.test_snapshot_pattern.TestSnapshotPattern.test_snapshot_pattern[compute,id-608e604b-1d63-4a82-8e3e-91bc665c90b4,image,network]
  2015-04-01 10:46:34.728 | -----------------------------------------------------------------------------------------------------------------------------------------------
  2015-04-01 10:46:34.728 |
  2015-04-01 10:46:34.728 | Captured traceback:
  2015-04-01 10:46:34.728 | ~~~~~~~~~~~~~~~~~~~
  2015-04-01 10:46:34.728 |     Traceback (most recent call last):
  2015-04-01 10:46:34.728 |       File "tempest/test.py", line 129, in wrapper
  2015-04-01 10:46:34.729 |         return f(self, *func_args, **func_kwargs)
  2015-04-01 10:46:34.729 |       File "tempest/scenario/test_snapshot_pattern.py", line 70, in test_snapshot_pattern
  2015-04-01 10:46:34.729 |         server = self._boot_image(CONF.compute.image_ref)
  2015-04-01 10:46:34.729 |       File "tempest/scenario/test_snapshot_pattern.py", line 45, in _boot_image
  2015-04-01 10:46:34.729 |         return self.create_server(image=image_id, create_kwargs=create_kwargs)
  2015-04-01 10:46:34.729 |       File "tempest/scenario/manager.py", line 202, in create_server
  2015-04-01 10:46:34.729 |         **create_kwargs)
  2015-04-01 10:46:34.729 |       File "tempest/services/compute/json/servers_client.py", line 92, in create_server
  2015-04-01 10:46:34.729 |         resp, body = self.post('servers', post_body)
  2015-04-01 10:46:34.729 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 252, in post
  2015-04-01 10:46:34.730 |         return self.request('POST', url, extra_headers, headers, body)
  2015-04-01 10:46:34.730 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 629, in request
  2015-04-01 10:46:34.730 |         resp, resp_body)
  2015-04-01 10:46:34.730 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 680, in _error_checker
  2015-04-01 10:46:34.730 |         raise exceptions.BadRequest(resp_body)
  2015-04-01 10:46:34.730 |     tempest_lib.exceptions.BadRequest: Bad request
  2015-04-01 10:46:34.730 |     Details: {u'message': u'Multiple possible networks found, use a Network ID to be more specific.', u'code': 400}
  =====================================================================================================

  In test_snapshot_pattern.py there are booting a vm without specifying
  a network since i am creating a shared network then conflict  arises
  while booting the network since network created as shared will be
  available to all the users hence this is a defect .

  Expected :
  So if we specify the network while booting a vm in test_snapshot_pattern tests this will not raise a conflict while running this test with shared network scenario test.

To manage notifications about this bug go to:
https://bugs.launchpad.net/tempest/+bug/1439164/+subscriptions


Follow ups

References