wrong error message when assigning floating ip

Bug #1645302 reported by Alex Stafeyev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Confirmed
Undecided
Anindita Das

Bug Description

Newton,
[stack@undercloud-0 ~]$ rpm -qa | grep openstack | grep client
python-openstackclient-3.2.0-2.el7ost.noarch

Executing the following while there is no GW on the router ( from the relevant network) print unclear error. The message should indicate that the cause for failure is lack of port GW configuration on the router.

[stack@undercloud-0 ~]$ openstack floating ip create public --port parent_port
NotFoundException: Not Found

http://pastebin.com/Gadg5u88

Tags: network
Revision history for this message
Richard Theis (rtheis) wrote :

Can you recreate this problem on the latest release of OSC?

tags: added: network
Revision history for this message
Alex Stafeyev (astafeye) wrote :

was the code in that are changed ? IF not it should be the same.

I will try anyhow though

Revision history for this message
mohit.048 (mohit.048) wrote :

Hello Alex,

Can you provide steps to reproduce this issue in more elaborate manner , I am unable to replicate this issue on my local devstack setup.

Revision history for this message
Alex Stafeyev (astafeye) wrote :

Hi Mohit,
The steps are:

Create a network and subnet.
Attach the subnet as interface to the router.
Create additional port in the created network.
Create external network ( DO NOT SET IT AS GW ON THE ROUTER)

execute:

openstack floating ip create public --port $PORD_ID/NAME

BR

Revision history for this message
John Davidge (john-davidge) wrote :

I'm seeing this problem myself. It seems that OSC is not returning the correct error message to the user. Here's the result when using the neutron client:

$ neutron floatingip-create public --port-id 52cfdc42-2042-4598-82a2-0044f28fed26
External network 15f64578-32fb-495f-93d6-9769150a7de8 is not reachable from subnet 8dd3af1b-064c-4d4a-a2f3-e3c71667698d. Therefore, cannot associate Port 52cfdc42-2042-4598-82a2-0044f28fed26 with a Floating IP.

And here's the result with OSC:

$ openstack floating ip create public --port 52cfdc42-2042-4598-82a2-0044f28fed26
Error while executing command: Not Found

This isn't the only command not returning correct error messages. I often find myself falling back to the neutron client to figure out what's actually gone wrong.

Changed in python-openstackclient:
status: New → Confirmed
Changed in python-openstackclient:
assignee: nobody → Anindita Das (anindita-das)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.