Bug 1760918
| Summary: | [OSP-13] tempest cleanup --init-saved-state fails with NeutronError: The resource could not be found. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Pavan <pkesavar> | ||||
| Component: | openstack-tempest | Assignee: | Chandan Kumar <chkumar> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Martin Kopec <mkopec> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 13.0 (Queens) | CC: | apevec, jagee, jpichon, lhh, slinaber, udesale | ||||
| Target Milestone: | --- | Keywords: | Triaged, ZStream | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-05-06 09:52:56 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 1765497 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Comment 2
Martin Kopec
2019-10-14 09:36:04 UTC
I reproduced the issue with tempest.conf which contained the following misconfigurations: 1. admin_password doesn't belong to [identity] section anymore [1], it should be under [auth] section. 2. I noticed that admin_password and uri were overridded when python-tempestconf was executed. Users don't need to do that, python-tempestconf is able to read sourced credentials as explained in the note here [2]. 3. the uri address used was different from the one in overcloudrc file (it's better not to override credentials when python-tempestconf is able to read them, see point above) Created attachment 1627354 [details]
error_output
I see now, the problem occurs when running tempest cleanup against undercloud. It seems that a user can't list floating ips with credentials from stackrc file which suggests that it might a problem of misconfigured user.
(underclud) [stack@undercloud-0 cloud]$ source ../stackrc
(undercloud) [stack@undercloud-0 cloud]$ openstack floating ip list
NotFoundException: Unknown error
(undercloud) [stack@undercloud-0 cloud]$ openstack floating ip list --debug
<output omitted>
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 134, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
result = self.run_subcommand(remainder)
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 169, in run_subcommand
ret_value = super(OpenStackShell, self).run_subcommand(argv)
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 119, in run
self.produce_output(parsed_args, column_names, data)
File "/usr/lib/python2.7/site-packages/cliff/lister.py", line 82, in produce_output
parsed_args,
File "/usr/lib/python2.7/site-packages/cliff/formatters/table.py", line 101, in emit_list
self.add_rows(x, column_names, data)
File "/usr/lib/python2.7/site-packages/cliff/formatters/table.py", line 80, in add_rows
first_row = next(data_iter)
File "/usr/lib/python2.7/site-packages/openstackclient/network/v2/floating_ip.py", line 399, in <genexpr>
(utils.get_item_properties(
File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 898, in list
exceptions.raise_from_response(response)
File "/usr/lib/python2.7/site-packages/openstack/exceptions.py", line 205, in raise_from_response
http_status=http_status, request_id=request_id
NotFoundException: NotFoundException: Unknown error
I'm also adding a full debug output as an attachment.
On a closer look, it looks like an issue in python-openstackclient. I believe when a user will be able to list floating ips on undercloud without the exception it will also fix the problem in tempest cleanup. Tempest cleanup depends on the clients which list and delete resources. In this case, the floating ip client is failing due to the BZ #1765497. The BZ #1765497 got closed as WONTFIX so there is not much we can do in tempest cleanup about it. I have to close this as WONTFIX as well. |