Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1765497

Summary: [RHOS-13] NotFoundException: Unknown error when listing floating ips
Product: Red Hat OpenStack Reporter: Martin Kopec <mkopec>
Component: python-openstackclientAssignee: Nate Johnston <njohnston>
Status: CLOSED WONTFIX QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: low    
Version: 13.0 (Queens)CC: apevec, bcafarel, jpichon, lhh, lmartins, njohnston, skaplons
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-27 14:15:45 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:    
Bug Blocks: 1760918    

Description Martin Kopec 2019-10-25 09:16:35 UTC
Description of problem:
python-openstackclient is returning NotFoundException: Unknown error when listing floating ips on undercloud.

Version-Release number of selected component (if applicable):
core_puddle=2019-10-23.1

python2-openstackclient-3.14.3-4.el7ost.noarch
python-openstackclient-lang-3.14.3-4.el7ost.noarch
python2-neutronclient-6.7.0-1.el7ost.noarch

How reproducible:
Source stackrc and list floating ips

Steps to Reproduce:
1. [stack@undercloud-0 ~]$ source stackrc 
2. (undercloud) [stack@undercloud-0 ~]$ openstack floating ip list
NotFoundException: Unknown error

Actual results:
(undercloud) [stack@undercloud-0 ~]$ openstack floating ip list --debug
<some output omitted>
NotFoundException: Unknown error
Traceback (most recent call last):
  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
clean_up ListFloatingIP: NotFoundException: Unknown error
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

END return value: 1

Expected results:
(undercloud) [stack@undercloud-0 ~]$ openstack floating ip list

(undercloud) [stack@undercloud-0 ~]$ echo $?
0

Additional info:
I was able reproduce this only on RHOS-13, the newer releases behave as expected.