Public bug reported: There's no such thing as floating IPs on an undercloud, but some investigative tools ask nevertheless. Asking for floating IPs on an undercloud results in a NotFoundException, which openstackclient does not handle gracefully:
(undercloud) [stack@undercloud-0 ~]$ openstack floating ip list --debug [output removed for brevity] REQ: curl -g -i -X GET http://192.168.24.1:9696/v2.0/floatingips -H "User-Agent: osc-lib/1.9.0 keystoneauth1/3.4.0 python-requests/2.14.2 CPython/2.7.5" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}02e85d1ea22075e2a96e97c4b58070887f1b8544" http://192.168.24.1:9696 "GET /v2.0/floatingips HTTP/1.1" 404 103 RESP: [404] Content-Length: 103 Content-Type: application/json X-Openstack-Request-Id: req-ab1bb8f9-205e-4956-9bf4-0a7fabcc996b Date: Fri, 15 Nov 2019 15:02:52 GMT Connection: keep-alive RESP BODY: {"NeutronError": {"message": "The resource could not be found.", "type": "HTTPNotFound", "detail": ""}} GET call to network for http://192.168.24.1:9696/v2.0/floatingips used request id req-ab1bb8f9-205e-4956-9bf4-0a7fabcc996b Manager unknown ran task network.GET.floatingips in 0.415860176086s 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 This exception should be handled gracefully by the client and should produce an error message, not a stack trace. Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1765497 ** Affects: neutron Importance: Undecided Assignee: Nate Johnston (nate-johnston) Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1852760 Title: When running 'openstack floating ip list' on undercloud, client cannot handle NotFoundException Status in neutron: New Bug description: There's no such thing as floating IPs on an undercloud, but some investigative tools ask nevertheless. Asking for floating IPs on an undercloud results in a NotFoundException, which openstackclient does not handle gracefully: (undercloud) [stack@undercloud-0 ~]$ openstack floating ip list --debug [output removed for brevity] REQ: curl -g -i -X GET http://192.168.24.1:9696/v2.0/floatingips -H "User-Agent: osc-lib/1.9.0 keystoneauth1/3.4.0 python-requests/2.14.2 CPython/2.7.5" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}02e85d1ea22075e2a96e97c4b58070887f1b8544" http://192.168.24.1:9696 "GET /v2.0/floatingips HTTP/1.1" 404 103 RESP: [404] Content-Length: 103 Content-Type: application/json X-Openstack-Request-Id: req-ab1bb8f9-205e-4956-9bf4-0a7fabcc996b Date: Fri, 15 Nov 2019 15:02:52 GMT Connection: keep-alive RESP BODY: {"NeutronError": {"message": "The resource could not be found.", "type": "HTTPNotFound", "detail": ""}} GET call to network for http://192.168.24.1:9696/v2.0/floatingips used request id req-ab1bb8f9-205e-4956-9bf4-0a7fabcc996b Manager unknown ran task network.GET.floatingips in 0.415860176086s 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 This exception should be handled gracefully by the client and should produce an error message, not a stack trace. Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1765497 To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1852760/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

