stable/havana : create_server fails in multi-network enviornment.

Bug #1297660 reported by Jaspreet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Invalid
Undecided
Jaspreet

Bug Description

A lot of tests that call the create server API fail when multiple networks are present in the tenant.
Besides create server Compute tests, other tests that call this API during setUp also fail.

A fix for this has been proposed to Tempest master (against bug https://bugs.launchpad.net/tempest/+bug/1250866)
However, the patch only addresses scenario tests.

Also, I think that the fix for master branch may not be easily backported (except scenario) to stable/havana due changes in the
code base.

Test fails while creating server, attaching volumes etc. Possible fix would be add network details in tempest code.

Please find following few logs while creating server.
1) ServersTestJSON.test_create_sever_response
ERROR: test suite for <class 'test_create_server.ServersTestJSON'>
----------------------------------------------------------------------
  File "/home/jaspreet/tempestjiocloud/tempest/tempest/services/compute/json/servers_client.py", line 82, in create_server
    resp, body = self.post('servers', post_body, self.headers)
  File "/home/jaspreet/tempestjiocloud/tempest/tempest/common/rest_client.py", line 302, in post
    return self.request('POST', url, headers, body)
  File "/home/jaspreet/tempestjiocloud/tempest/tempest/common/rest_client.py", line 436, in request
    resp, resp_body)
  File "/home/jaspreet/tempestjiocloud/tempest/tempest/common/rest_client.py", line 486, in _error_checker
    raise exceptions.BadRequest(resp_body)
BadRequest: Bad request
Details: {u'badRequest': {u'message': u'Multiple possible networks found, use a Network ID to be more specific.', u'code': 400}}

2) Attaching volume (test_volumes_actions:VolumesActionsTest.test_attach_detach_volume_to_instance)
ERROR: test suite for <class 'test_volumes_actions.VolumesActionsTest'>
----------------------------------------------------------------------
  File "/home/jaspreet/tempestjiocloud/tempest/tempest/common/rest_client.py", line 436, in request
    resp, resp_body)
  File "/home/jaspreet/tempestjiocloud/tempest/tempest/common/rest_client.py", line 486, in _error_checker
    raise exceptions.BadRequest(resp_body)
BadRequest: Bad request
Details: {u'badRequest': {u'message': u'Multiple possible networks found, use a Network ID to be more specific.', u'code': 400}

Changed in tempest:
assignee: nobody → Jaspreet (walia-jaspreet)
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

Tempest does not support havana branch.

Same bug - https://bugs.launchpad.net/tempest/+bug/1250866 is in progress on master branch.

Scenario tests fixed - https://review.openstack.org/#/c/68904/
API tests - In Progress - https://review.openstack.org/#/c/61037/

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.