Bug 1722147 - DCI-tempest environment creation failing(subnetpool not a supported extension)
Summary: DCI-tempest environment creation failing(subnetpool not a supported extension)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 14.0 (Rocky)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: z4
: 14.0 (Rocky)
Assignee: Martin Kopec
QA Contact: Lukas Piwowarski
URL:
Whiteboard:
Depends On: 1716594
Blocks: 1722154 1737757
TreeView+ depends on / blocked
 
Reported: 2019-06-19 14:26 UTC by Martin Kopec
Modified: 2019-11-06 16:53 UTC (History)
12 users (show)

Fixed In Version: openstack-tempest-19.0.0-5.el7ost
Doc Type: No Doc Update
Doc Text:
Clone Of: 1716594
: 1722154 (view as bug list)
Environment:
Last Closed: 2019-11-06 16:53:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
bug_1722147.log (2.91 KB, text/plain)
2019-10-08 08:06 UTC, Lukas Piwowarski
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1832566 0 None None None 2019-06-19 14:28:17 UTC
OpenStack gerrit 664962 0 None master: MERGED tempest: Fix cleanup NotImplemented error (I9ced4af40eb0c2a22e3557caded56045a397d539) 2019-08-22 11:33:59 UTC
Red Hat Product Errata RHBA-2019:3747 0 None None None 2019-11-06 16:53:41 UTC

Description Martin Kopec 2019-06-19 14:26:53 UTC
+++ This bug was initially created as a clone of Bug #1716594 +++

Description of problem:
DCI tempest execution failed while creating tempest environment.

While listing subnetpool , tempest setup fails. Subnetpool extension is not a supported neutron plugin in contrail
Version-Release number of selected component (if applicable):


How reproducible:
Run the DCI tempest setup creation

Steps to Reproduce:
1.
2.
3.

Actual results:

019-05-29 17:46:30 | + /usr/bin/tempest cleanup --init-saved-state
2019-05-29 17:46:38 | Traceback (most recent call last):
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup.py", line 98, in take_action
2019-05-29 17:46:38 |     self.init(parsed_args)
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup.py", line 126, in init
2019-05-29 17:46:38 |     self._init_state()
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup.py", line 309, in _init_state
2019-05-29 17:46:38 |     svc.run()
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup_service.py", line 132, in run
2019-05-29 17:46:38 |     self.save_state()
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup_service.py", line 705, in save_state
2019-05-29 17:46:38 |     pools = self.list()
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup_service.py", line 680, in list
2019-05-29 17:46:38 |     pools = client.list_subnetpools(**self.tenant_filter)['subnetpools']
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/lib/services/network/subnetpools_client.py", line 28, in list_subnetpools
2019-05-29 17:46:38 |     return self.list_resources(uri, **filters)
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/lib/services/network/base.py", line 34, in list_resources
2019-05-29 17:46:38 |     resp, body = self.get(req_uri)
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 294, in get
2019-05-29 17:46:38 |     return self.request('GET', url, extra_headers, headers)
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 668, in request
2019-05-29 17:46:38 |     self._error_checker(resp, resp_body)
2019-05-29 17:46:38 |   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 842, in _error_checker
2019-05-29 17:46:38 |     message=message)
2019-05-29 17:46:38 | NotImplemented: Got NotImplemented error
2019-05-29 17:46:38 | Details: 
2019-05-29 17:46:38 | Initializing saved state.
³!@)stdout'No tests in repository'
Expected results:


Additional info:

subnetpool not  a supported extension

Comment 2 Martin Kopec 2019-08-06 07:44:48 UTC
The issue is fixed only partially. tempest cleanup doesn't fail on NotImplemented error anymore and continues cleaning resources as expected, however, the return code of 'tempest cleanup --init-saved-state' is not appropriate and causes issues from automation perspective. This return code issue is tracked separately here https://bugzilla.redhat.com/show_bug.cgi?id=1737757

Comment 4 Lukas Piwowarski 2019-10-08 08:06:07 UTC
Created attachment 1623435 [details]
bug_1722147.log

Comment 5 Lukas Piwowarski 2019-10-08 08:08:18 UTC
Tested with:
  - package with the bug (openstack-tempest-19.0.0-4.el7ost)
  - package with the fix (openstack-tempest-19.0.0-5.el7ost)

When tested with the package with the fix the bug was not reproduced as shown in the attached log file (bug_1722147.log).

Comment 8 errata-xmlrpc 2019-11-06 16:53:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3747


Note You need to log in before you can comment on or make changes to this bug.