Bug 1726936 - Tempest cleanup appears to not honor "subnetpool = false" configuration option
Summary: Tempest cleanup appears to not honor "subnetpool = false" configuration option
Keywords:
Status: CLOSED DUPLICATE of bug 1716594
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 13.0 (Queens)
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Chandan Kumar
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-04 06:30 UTC by GE Scott Knauss
Modified: 2019-07-04 19:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-04 19:56:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tempest-failure log (12.43 KB, text/plain)
2019-07-04 06:30 UTC, GE Scott Knauss
no flags Details

Description GE Scott Knauss 2019-07-04 06:30:22 UTC
Created attachment 1587288 [details]
tempest-failure log

Description of problem:

While running tempest --cleanup, tempest fails with:

19-05-28 00:56:48.879 1705 DEBUG tempest.cmd.cleanup_service [-] List count, 0 security_groups list /usr/lib/python2.7/site-packages/tempest/cmd/cleanup_service.py:618
2019-05-28 00:56:48.900 1705 INFO tempest.lib.common.rest_client [req-111d77fa-c1df-4aee-82b3-5e5c54615669 ] Request (main): 501 GET https://10.87.5.39:13696/v2.0/subnetpools 0.020s
2019-05-28 00:56:48.900 1705 DEBUG tempest.lib.common.rest_client [req-111d77fa-c1df-4aee-82b3-5e5c54615669 ] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '501', u'content-length': '85', 'content-location': 'https://10.87.5.39:13696/v2.0/subnetpools', u'date': 'Tue, 28 May 2019 07:56:52 GMT', u'content-type': 'application/json', u'connection': 'close', u'x-openstack-request-id': '
req-111d77fa-c1df-4aee-82b3-5e5c54615669'}
        Body: {"NotImplementedError": {"message": "", "type": "NotImplementedError", "detail": ""}} _log_request_full /usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py:434
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup [-] Failure during cleanup: NotImplemented: Got NotImplemented error
Details:
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup Traceback (most recent call last):
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup.py", line 98, in take_action
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     self.init(parsed_args)
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup.py", line 126, in init
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     self._init_state()
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup.py", line 309, in _init_state
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     svc.run()
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup_service.py", line 132, in run
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     self.save_state()
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup_service.py", line 705, in save_state
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     pools = self.list()
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/cmd/cleanup_service.py", line 680, in list
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     pools = client.list_subnetpools(**self.tenant_filter)['subnetpools']
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/lib/services/network/subnetpools_client.py", line 28, in list_subnetpools
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     return self.list_resources(uri, **filters)
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/lib/services/network/base.py", line 34, in list_resources
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     resp, body = self.get(req_uri)
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 294, in get
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     return self.request('GET', url, extra_headers, headers)
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 668, in request
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     self._error_checker(resp, resp_body)
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 842, in _error_checker
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup     message=message)
2019-05-28 00:56:48.901 1705 ERROR tempest.cmd.cleanup NotImplemented: Got NotImplemented error


It looks like recent update to this packages introduced change added by this commit https://github.com/openstack/tempest/commit/e681998023d9714da346d117e18ab673b5657f71#diff-495b2e0d4cc2d1cc57efde3e22904029

 

Version-Release number of selected component (if applicable):

$ rpm -qa | grep tempest
python2-tempest-tests-18.0.0-7.el7ost.noarch
openstack-tempest-18.0.0-7.el7ost.noarch
python2-cinder-tests-tempest-0.0.1-1.0.aafbdf8git.el7ost.noarch
python2-horizon-tests-tempest-0.0.1-0.20180219094157.a23f407.el7ost.noarch
python2-tempest-18.0.0-7.el7ost.noarch
python2-neutron-tests-tempest-0.0.1-0.20180425142846.02a5e2b.el7ost.noarch
python2-tempestconf-2.0.0-1.el7ost.noarch
python2-keystone-tests-tempest-0.0.1-1.0.564670bgit.el7ost.noarch

How reproducible:

In the tempest configuration set subnetpool feature disabled

[network-feature-enabled]
ipv6 = false
floating_ips = false
subnet_allocation = false
api_extensions=contrail,lbaasv2,pagination,sorting,security-group,ipam,port-security,binding,provider,agent,quotas,route-table,standard-attr-description,external-net,policy,router,allowed-address-pairs,extra_dhcp_opt,project-id,extra_lbaas_opts
subnetpool = false

  During execution of 'tempest cleanup --init-saved-state' tempest does not seem to respect configuration and run calls to disabled feature.

Actual results:

  Cleanup fails


Expected results:

  Cleanup completes without errors

Additional info:

 CU needs to disable subnetpools as this feature is not supported by contrail

Comment 1 Martin Kopec 2019-07-04 19:56:07 UTC
It seems it's duplicate of 1716594. If not or you have any other queries, please comment or reopen the bug.

*** This bug has been marked as a duplicate of bug 1716594 ***


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