Tempest bug to get share-network

Bug #1966198 reported by Marco Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Nahim Alves de Souza

Bug Description

Shar-network info:

stack@e2e-os-unitymanila139:~/devstack$ manila share-network-list
+--------------------------------------+----------+
| id | name |
+--------------------------------------+----------+
| 57cb70dd-1c44-4c38-b49c-e63835c8113f | None |
| 9f233fa8-d229-454d-ad82-1aa3518be05f | new_name |
+--------------------------------------+----------+
stack@e2e-os-unitymanila139:~/devstack$ manila share-network-show new_name
+---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | 9f233fa8-d229-454d-ad82-1aa3518be05f |
| name | new_name |
| project_id | ce963ae017c548f0958dd20244efec55 |
| created_at | 2022-03-23T10:23:37.476532 |
| updated_at | 2022-03-23T12:23:07.194541 |
| description | new_description |
| share_network_subnets | [{'id': '97afeda5-09ed-4af6-98c8-e3a725c6aab2', 'availability_zone': None, 'created_at': '2022-03-23T10:23:37.588127', 'updated_at': '2022-03-23T10:23:45.612817', 'segmentation_id': 50, 'neutron_net_id': 'f3371f55-a105-4c6a-80b5-9f165cc88d97', 'neutron_subnet_id': 'f59d37ab-bb34-45ce-9fc4-54231ca97c9a', 'ip_version': 4, 'cidr': '172.30.50.0/24', 'network_type': 'vlan', 'mtu': 1500, 'gateway': '172.30.50.1'}] |
| status | active |
| security_service_update_support | False |
+---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Tempest case filed at find share-network by id 9f233fa8-d229-454d-ad82-1aa3518be05f, but this id exist.

root@e2e-os-unitymanila139:/opt/stack/new/tempest# sudo -H -u jenkins tempest run -r manila_tempest_tests.tests.api.test_share_servers_multiple_subnet_negative.ShareServerMultipleSubNegativeTest --concurrency=1
{0} setUpClass (manila_tempest_tests.tests.api.test_share_servers_multiple_subnet_negative.ShareServerMultipleSubNegativeTest) [0.000000s] ... FAILED

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/opt/stack/new/tempest/tempest/test.py", line 168, in setUpClass
    raise value.with_traceback(trace)

      File "/opt/stack/new/tempest/tempest/test.py", line 161, in setUpClass
    cls.resource_setup()

      File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/tests/api/test_share_servers_multiple_subnet_negative.py", line 40, in resource_setup
    cls.share_network = cls.alt_shares_v2_client.get_share_network(

      File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/services/share/v2/json/shares_client.py", line 1771, in get_share_network
    resp, body = self.get("share-networks/%s" % share_network_id,

      File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/services/share/v2/json/shares_client.py", line 77, in get
    resp, body = super(SharesV2Client, self).get(url, headers=headers)

      File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 314, in get
    return self.request('GET', url, extra_headers, headers)

      File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 703, in request
    self._error_checker(resp, resp_body)

      File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 809, in _error_checker
    raise exceptions.NotFound(resp_body, resp=resp)

    tempest.lib.exceptions.NotFound: Object not found
Details: {'code': 404, 'message': 'Share network 9f233fa8-d229-454d-ad82-1aa3518be05f could not be found.'}

==============================
Failed 1 tests - output below:
==============================

setUpClass (manila_tempest_tests.tests.api.test_share_servers_multiple_subnet_negative.ShareServerMultipleSubNegativeTest)
--------------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/opt/stack/new/tempest/tempest/test.py", line 168, in setUpClass
    raise value.with_traceback(trace)

      File "/opt/stack/new/tempest/tempest/test.py", line 161, in setUpClass
    cls.resource_setup()

      File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/tests/api/test_share_servers_multiple_subnet_negative.py", line 40, in resource_setup
    cls.share_network = cls.alt_shares_v2_client.get_share_network(

      File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/services/share/v2/json/shares_client.py", line 1771, in get_share_network
    resp, body = self.get("share-networks/%s" % share_network_id,

      File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/services/share/v2/json/shares_client.py", line 77, in get
    resp, body = super(SharesV2Client, self).get(url, headers=headers)

      File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 314, in get
    return self.request('GET', url, extra_headers, headers)

      File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 703, in request
    self._error_checker(resp, resp_body)

      File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 809, in _error_checker
    raise exceptions.NotFound(resp_body, resp=resp)

    tempest.lib.exceptions.NotFound: Object not found
Details: {'code': 404, 'message': 'Share network 9f233fa8-d229-454d-ad82-1aa3518be05f could not be found.'}

======
Totals
======
Ran: 1 tests in 0.0000 sec.
 - Passed: 0
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 1
Sum of execute time for each test: 0.0000 sec.

==============
Worker Balance
==============
 - Worker 0 (1 tests) => 0:00:00

Tags: tempst
Revision history for this message
Sofia Enriquez (lsofia-enriquez) wrote :

Moving this bug to Manila :)

affects: cinder → manila
Changed in manila:
assignee: nobody → Andre Luiz Beltrami Rocha (andrebeltrami)
milestone: none → zed-2
Changed in manila:
milestone: zed-2 → zed-3
Changed in manila:
assignee: Andre Luiz Beltrami Rocha (andrebeltrami) → nobody
Changed in manila:
assignee: nobody → Nahim Alves de Souza (nahimsouza)
milestone: zed-3 → zed-rc1
Revision history for this message
Nahim Alves de Souza (nahimsouza) wrote :

Hi, Marco, I tried to reproduce this bug using a NetApp backend and the latest OpenStack version (master), but the test has passed [1]. Could you please provide more information about the environment you used in this test? (which driver, OpenStack version, etc)

[1] https://paste.opendev.org/show/bSDCdssNuFdnnE5QCWCq/

Changed in manila:
status: New → In Progress
Revision history for this message
Nahim Alves de Souza (nahimsouza) wrote :
Changed in manila:
importance: Undecided → Medium
Changed in manila:
milestone: zed-rc1 → antelope-1
Changed in manila:
milestone: antelope-1 → antelope-2
Changed in manila:
milestone: antelope-2 → antelope-3
Changed in manila:
milestone: antelope-3 → antelope-rc1
Changed in manila:
milestone: antelope-rc1 → bobcat-1
Changed in manila:
milestone: bobcat-1 → bobcat-2
Changed in manila:
status: In Progress → Fix Committed
Changed in manila:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila-tempest-plugin 2.0.0

This issue was fixed in the openstack/manila-tempest-plugin 2.0.0 release.

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.