tempest.api.volume.test_volumes_snapshots.VolumesSnapshotTestJSON fails with network resource conflict

Bug #1753211 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
chandan kumar

Bug Description

https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-master/6cec620/tempest.html.gz

ft3.4: tempest.api.volume.test_volumes_snapshots.VolumesSnapshotTestJSON.test_snapshot_create_offline_delete_online[compute,id-5210a1de-85a0-11e6-bb21-641c676a5d61]_StringException: pythonlogging:'': {{{
2018-03-04 02:47:34,317 2739 INFO [tempest.lib.common.rest_client] Request (VolumesSnapshotTestJSON:test_snapshot_create_offline_delete_online): 202 POST http://192.168.24.9:8776/v2/4def148a551946a99819148caa71f427/snapshots 0.237s
2018-03-04 02:47:34,317 2739 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"snapshot": {"name": "tempest-VolumesSnapshotTestJSON-Snapshot-723217753", "volume_id": "daae69a4-0a65-4087-b9d7-c4960d6bac19"}}
    Response - Headers: {'status': '202', u'content-length': '309', 'content-location': 'http://192.168.24.9:8776/v2/4def148a551946a99819148caa71f427/snapshots', u'x-compute-request-id': 'req-b5585260-6bbe-4e4d-838d-61098adaa283', u'server': 'Apache', u'connection': 'close', u'date': 'Sun, 04 Mar 2018 02:47:34 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-b5585260-6bbe-4e4d-838d-61098adaa283'}
        Body: {"snapshot": {"status": "creating", "size": 1, "metadata": {}, "name": "tempest-VolumesSnapshotTestJSON-Snapshot-723217753", "volume_id": "daae69a4-0a65-4087-b9d7-c4960d6bac19", "created_at": "2018-03-04T02:47:34.239884", "description": null, "id": "583deff9-badd-40a5-83cf-c585cbb1e8ec", "updated_at": null}}
2018-03-04 02:47:34,354 2739 INFO [tempest.lib.common.rest_client] Request (VolumesSnapshotTestJSON:test_snapshot_create_offline_delete_online): 200 GET http://192.168.24.9:8776/v2/4def148a551946a99819148caa71f427/snapshots/583deff9-badd-40a5-83cf-c585cbb1e8ec 0.037s
2018-03-04 02:47:34,355 2739 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '441', 'content-location': 'http://192.168.24.9:8776/v2/4def148a551946a99819148caa71f427/snapshots/583deff9-badd-40a5-83cf-c585cbb1e8ec', u'x-compute-request-id': 'req-09407313-37e6-47d1-bbf0-8e7f92ea202d', u'vary': 'Accept-Encoding', u'server': 'Apache', u'connection': 'close', u'date': 'Sun, 04 Mar 2018 02:47:34 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-09407313-37e6-47d1-bbf0-8e7f92ea202d'}
        Body: {"snapshot": {"status": "creating", "description": null, "updated_at": null, "volume_id": "daae69a4-0a65-4087-b9d7-c4960d6bac19", "id": "583deff9-badd-40a5-83cf-c585cbb1e8ec", "size": 1, "os-extended-snapshot-attributes:progress": "0%", "name": "tempest-VolumesSnapshotTestJSON-Snapshot-723217753", "os-extended-snapshot-attributes:project_id": "4def148a551946a99819148caa71f427", "created_at": "2018-03-04T02:47:34.000000", "metadata": {}}}
2018-03-04 02:47:35,424 2739 INFO [tempest.lib.common.rest_client] Request (VolumesSnapshotTestJSON:test_snapshot_create_offline_delete_online): 200 GET http://192.168.24.9:8776/v2/4def148a551946a99819148caa71f427/snapshots/583deff9-badd-40a5-83cf-c585cbb1e8ec 0.068s
2018-03-04 02:47:35,424 2739 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '441', 'content-location': 'http://192.168.24.9:8776/v2/4def148a551946a99819148caa71f427/snapshots/583deff9-badd-40a5-83cf-c585cbb1e8ec', u'x-compute-request-id': 'req-374944ea-2a81-4242-be63-155a90bf43ca', u'vary': 'Accept-Encoding', u'server': 'Apache', u'connection': 'close', u'date': 'Sun, 04 Mar 2018 02:47:35 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-374944ea-2a81-4242-be63-155a90bf43ca'}
        Body: {"snapshot": {"status": "creating", "description": null, "updated_at": null, "volume_id": "daae69a4-0a65-4087-b9d7-c4960d6bac19", "id": "583deff9-badd-40a5-83cf-c585cbb1e8ec", "size": 1, "os-extended-snapshot-attributes:progress": "0%", "name": "tempest-VolumesSnapshotTestJSON-Snapshot-723217753", "os-extended-snapshot-attributes:project_id": "4def148a551946a99819148caa71f427", "created_at": "2018-03-04T02:47:34.000000", "metadata": {}}}
2018-03-04 02:47:36,460 2739 INFO [tempest.lib.common.rest_client] Request (VolumesSnapshotTestJSON:test_snapshot_create_offline_delete_online): 200 GET http://192.168.24.9:8776/v2/4def148a551946a99819148caa71f427/snapshots/583deff9-badd-40a5-83cf-c585cbb1e8ec 0.034s
2018-03-04 02:47:36,460 2739 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '468', 'content-location': 'http://192.168.24.9:8776/v2/4def148a551946a99819148caa71f427/snapshots/583deff9-badd-40a5-83cf-c585cbb1e8ec', u'x-compute-request-id': 'req-fcd87ab3-6060-4ddb-80d8-4585e619400f', u'vary': 'Accept-Encoding', u'server': 'Apache', u'connection': 'close', u'date': 'Sun, 04 Mar 2018 02:47:36 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-fcd87ab3-6060-4ddb-80d8-4585e619400f'}
        Body: {"snapshot": {"status": "available", "description": null, "updated_at": "2018-03-04T02:47:36.000000", "volume_id": "daae69a4-0a65-4087-b9d7-c4960d6bac19", "id": "583deff9-badd-40a5-83cf-c585cbb1e8ec", "size": 1, "os-extended-snapshot-attributes:progress": "100%", "name": "tempest-VolumesSnapshotTestJSON-Snapshot-723217753", "os-extended-snapshot-attributes:project_id": "4def148a551946a99819148caa71f427", "created_at": "2018-03-04T02:47:34.000000", "metadata": {}}}
2018-03-04 02:47:36,460 2739 INFO [tempest.common.waiters] snapshot 583deff9-badd-40a5-83cf-c585cbb1e8ec reached available after waiting for 2.460838 seconds
2018-03-04 02:47:36,919 2739 INFO [tempest.lib.common.rest_client] Request (VolumesSnapshotTestJSON:test_snapshot_create_offline_delete_online): 201 POST http://192.168.24.9:5000//v3/auth/tokens
2018-03-04 02:47:36,919 2739 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}
        Body: <omitted>
    Response - Headers: {'status': '201', u'content-length': '9270', 'content-location': 'http://192.168.24.9:5000//v3/auth/tokens', u'x-subject-token': '<omitted>', u'vary': 'X-Auth-Token', u'server': 'Apache', u'connection': 'close', u'date': 'Sun, 04 Mar 2018 02:47:36 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-b433aeac-a8cc-4709-8a3c-94a76f4d1df6'}
        Body: {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "c2b101baa494470aa9defdc135cebea0", "name": "Member"}], "expires_at": "2018-03-04T03:47:36.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "4def148a551946a99819148caa71f427", "name": "tempest-VolumesSnapshotTestJSON-805109195"}, "catalog": [{"endpoints": [{"region_id": "regionOne", "url": "http://192.168.24.9:8778/placement", "region": "regionOne", "interface": "internal", "id": "3d8cdf19ef6f4b54a094e3b30373ff96"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8778/placement", "region": "regionOne", "interface": "admin", "id": "8379cbb4b19a4656a9fcb6dd8f72cd4d"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8778/placement", "region": "regionOne", "interface": "public", "id": "c445cff55fc54a358a671dfe5338fb4d"}], "type": "placement", "id": "0ca14aec6bba4681b709a68c07a4e7c7", "name": "placement"}, {"endpoints": [], "type": "tempest-type-1813469239", "id": "0fd86572d3a8493983437da94093a1c0", "name": "tempest-service-422095790"}, {"endpoints": [{"region_id": "regionOne", "url": "http://192.168.24.9:8004/v1/4def148a551946a99819148caa71f427", "region": "regionOne", "interface": "admin", "id": "5e6db94b6bca4bf19bc8531fbeaa6de1"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8004/v1/4def148a551946a99819148caa71f427", "region": "regionOne", "interface": "internal", "id": "8606287662ca4ee1b644beeb2e01613b"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8004/v1/4def148a551946a99819148caa71f427", "region": "regionOne", "interface": "public", "id": "bc6203488f734bb69b1912321883ca12"}], "type": "orchestration", "id": "3606407f147240bfa05399300c102699", "name": "heat"}, {"endpoints": [{"region_id": "regionOne", "url": "http://192.168.24.9:8774/v2.1", "region": "regionOne", "interface": "internal", "id": "01325a068cf04f94a896e7c9d53a2d16"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8774/v2.1", "region": "regionOne", "interface": "public", "id": "5eb8a41aba3a4064b132d439828431f0"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8774/v2.1", "region": "regionOne", "interface": "admin", "id": "82dcbfd729c04ccf9e3a0a0ca29ea1fb"}], "type": "compute", "id": "49ab1b67dd044c71b6adfa04633f92bd", "name": "nova"}, {"endpoints": [{"region_id": "regionOne", "url": "http://192.168.24.9:8041", "region": "regionOne", "interface": "public", "id": "0f15e810ea464f4f86395a8e98679412"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8041", "region": "regionOne", "interface": "internal", "id": "65dba0c82dcd44a5922248c84ec85835"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8041", "region": "regionOne", "interface": "admin", "id": "9f25ba7f6e1942aebe270ae0329b6e3b"}], "type": "metric", "id": "51a6011059c949a1be032fc56dce8747", "name": "gnocchi"}, {"endpoints": [], "type": "metering", "id": "5af13a09a78b4310b266c98773e520ff", "name": "ceilometer"}, {"endpoints": [{"region_id": "regionOne", "url": "http://192.168.24.9:8776/v1/4def148a551946a99819148caa71f427", "region": "regionOne", "interface": "public", "id": "8b6890c48d574044bca7b6a7bd4af937"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8776/v1/4def148a551946a99819148caa71f427", "region": "regionOne", "interface": "internal", "id": "f4ff3a32f83f43e6858f51f76fea898f"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8776/v1/4def148a551946a99819148caa71f427", "region": "regionOne", "interface": "admin", "id": "f9167c4c1cfa46189baf389f39c70d1d"}], "type": "volume", "id": "8079122a537943368007cdb4e38fd1db", "name": "cinder"}, {"endpoints": [{"region_id": "regionOne", "url": "http://192.168.24.9:8080/v1/AUTH_4def148a551946a99819148caa71f427", "region": "regionOne", "interface": "internal", "id": "b6b65366f49f4a939050fd0d17bd7abe"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8080", "region": "regionOne", "interface": "admin", "id": "f8f740596ce64551bffa369f71973e49"}, {"region_id": "regionOne", "url": "http://192.168.24.9:8080/v1/AUTH_4def148a551946a99819148caa71f427", "region": "regionOne", "interface": "pu
2018-03-04 02:47:36,920 2739 INFO [tempest.lib.common.fixed_network] (VolumesSnapshotTestJSON:test_snapshot_create_offline_delete_online) Found network None available for tenant
2018-03-04 02:47:37,227 2739 INFO [tempest.lib.common.rest_client] Request (VolumesSnapshotTestJSON:test_snapshot_create_offline_delete_online): 409 POST http://192.168.24.9:8774/v2.1/servers 0.306s
2018-03-04 02:47:37,227 2739 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"server": {"flavorRef": "e443576a-50cd-4023-88e0-574b1ec1726e", "name": "tempest-VolumesSnapshotTestJSON-instance-562995939", "imageRef": "9a98ccb7-cd30-43da-85a9-5cfd8126c5ae"}}
    Response - Headers: {'status': '409', u'content-length': '123', 'content-location': 'http://192.168.24.9:8774/v2.1/servers', u'x-compute-request-id': 'req-8352b54b-3b86-4997-b3b6-cd1d9fb05963', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Sun, 04 Mar 2018 02:47:36 GMT', u'content-type': 'application/json; charset=UTF-8', u'x-openstack-request-id': 'req-8352b54b-3b86-4997-b3b6-cd1d9fb05963'}
        Body: {"conflictingRequest": {"message": "Multiple possible networks found, use a Network ID to be more specific.", "code": 409}}
}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tempest/common/utils/__init__.py", line 88, in wrapper
    return f(*func_args, **func_kwargs)
  File "/usr/lib/python2.7/site-packages/tempest/api/volume/test_volumes_snapshots.py", line 69, in test_snapshot_create_offline_delete_online
    server = self.create_server()
  File "/usr/lib/python2.7/site-packages/tempest/api/volume/base.py", line 210, in create_server
    **kwargs)
  File "/usr/lib/python2.7/site-packages/tempest/common/compute.py", line 191, in create_test_server
    **kwargs)
  File "/usr/lib/python2.7/site-packages/tempest/lib/services/compute/servers_client.py", line 89, in create_server
    resp, body = self.post('servers', post_body)
  File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 279, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "/usr/lib/python2.7/site-packages/tempest/lib/services/compute/base_compute_client.py", line 48, in request
    method, url, extra_headers, headers, body, chunked)
  File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 668, in request
    self._error_checker(resp, resp_body)
  File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 789, in _error_checker
    raise exceptions.Conflict(resp_body, resp=resp)
tempest.lib.exceptions.Conflict: Conflict with state of target resource
Details: {u'message': u'Multiple possible networks found, use a Network ID to be more specific.', u'code': 409}

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-quickstart-extras (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/549516

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/549516
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=4a3e4bc6e942f7cd37c413db98f9ef7aa65cc300
Submitter: Zuul
Branch: master

commit 4a3e4bc6e942f7cd37c413db98f9ef7aa65cc300
Author: Wes Hayutin <email address hidden>
Date: Sun Mar 4 03:09:15 2018 -0500

    two new tempest failures on master

    Related-Bug: #1753209
    Related-Bug: #1753211
    Change-Id: Ib9952abc0a2571663d51ed664bb2ef1bcd9e7def

Changed in tripleo:
assignee: nobody → Ihar Hrachyshka (ihar-hrachyshka)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart-extras (master)

Change abandoned by Ihar Hrachyshka (<email address hidden>) on branch: master
Review: https://review.openstack.org/553501

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart-extras (master)

Fix proposed to branch: master
Review: https://review.opendev.org/675253

Changed in tripleo:
assignee: Ihar Hrachyshka (ihar-hrachyshka) → chandan kumar (chkumar246)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.opendev.org/675253
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=0e51e3492c6f46566d7ec6f6c1c9bef32f43f69b
Submitter: Zuul
Branch: master

commit 0e51e3492c6f46566d7ec6f6c1c9bef32f43f69b
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Thu Aug 8 12:12:51 2019 +0530

    Remove VolumesSnapshotTestJSON from stein skip list

    In https://logs.rdoproject.org/openstack-periodic-latest-released/
    opendev.org/openstack/tripleo-ci/master/
    periodic-tripleo-ci-centos-7-ovb-1ctlr_2comp-featureset021-stein/83bbe80/logs/tempest.html.gz

    tempest.api.volume.test_volumes_snapshots.VolumesSnapshotTestJSON
    is passing in fs021.

    Closes-Bug: #1753211

    Change-Id: I9e9472b2a2de8f92dab50f4fe2ab6df1cd3d87d9
    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
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.