Public bug reported:
Hi,
I'm using the openstack rocky client ("openstack 3.16.2" apparently -
from the "openstackclients" snap, rocky v37).
Trying to add a router interface for a subnet that is out of IP, the
neutron client get an error, but nothing is displayed back to the user.
The neutron client should make it pretty clear that the request failed,
and why :
$ openstack router add subnet MyRouter uselesssubnet --debug
[...]
REQ: curl -g -i -X GET http://192.168.0.22:9696/v2.0/routers -H "Accept:
application/json" -H "User-Agent: openstacksdk/0.17.2 keystoneauth1/3.10.0
python-requests/2.19.1 CPython/3.5.2" -H "X-Auth-Token:
{SHA1}0e210f0581f07ec7bf245b9ac391e5aa552af3bd"
http://192.168.0.22:9696 "GET /v2.0/routers HTTP/1.1" 200 695
RESP: [200] Connection: keep-alive Content-Length: 695 Content-Type:
application/json Date: Wed, 17 Apr 2019 11:52:08 GMT X-Openstack-Request-Id:
req-ec539fce-526f-4d2b-99f7-d190a503bd62
RESP BODY: {"routers": [{"id": "2e78c120-5e25-4ca5-b8ca-91c98c4a386a", "name":
"MyRouter", "tenant_id": "8d9dfa0fb0924053bb39d19a2f436282", "admin_state_up":
true, "status": "ACTIVE", "external_gateway_info": {"network_id":
"aee1250b-20c9-4697-8a75-223af7353ecf", "enable_snat": true,
"external_fixed_ips": [{"subnet_id": "cad3a8de-b1ec-4acc-baae-dcef67e6ece0",
"ip_address": "192.168.0.163"}]}, "description": "", "availability_zones":
["nova"], "distributed": true, "ha": true, "availability_zone_hints": [],
"routes": [], "flavor_id": null, "tags": [], "created_at":
"2019-04-12T07:14:18Z", "updated_at": "2019-04-17T10:29:15Z",
"revision_number": 16, "project_id": "8d9dfa0fb0924053bb39d19a2f436282"}]}
GET call to network for http://192.168.0.22:9696/v2.0/routers used request id
req-ec539fce-526f-4d2b-99f7-d190a503bd62
Manager unknown ran task network.GET.routers in 0.12100529670715332s
Manager unknown running task network.PUT.routers.add_router_interface
REQ: curl -g -i -X PUT
http://192.168.0.22:9696/v2.0/routers/2e78c120-5e25-4ca5-b8ca-91c98c4a386a/add_router_interface
-H "Content-Type: application/json" -H "User-Agent: openstacksdk/0.17.2
keystoneauth1/3.10.0 python-requests/2.19.1 CPython/3.5.2" -H "X-Auth-Token:
{SHA1}0e210f0581f07ec7bf245b9ac391e5aa552af3bd" -d '{"subnet_id":
"890666f3-dd3d-4596-a477-2369b1c73996"}'
http://192.168.0.22:9696 "PUT
/v2.0/routers/2e78c120-5e25-4ca5-b8ca-91c98c4a386a/add_router_interface
HTTP/1.1" 409 408
RESP: [409] Connection: keep-alive Content-Length: 408 Content-Type:
application/json Date: Wed, 17 Apr 2019 11:52:10 GMT X-Openstack-Request-Id:
req-3e364ad1-331f-4673-89a4-b51e454169e0
RESP BODY: {"NeutronError": {"type": "RouterInterfaceAttachmentConflict",
"message": "Error cannot perform router interface attachment due to Callback
neutron.services.l3_router.l3_router_plugin.DVRResourceOperationHandler._add_csnat_on_interface_create--9223372036851126307
failed with \"No more IP addresses available on network
f135dbc4-f712-4987-9149-0bd0b809e5bb.\" while attempting the operation.",
"detail": ""}}
PUT call to network for
http://192.168.0.22:9696/v2.0/routers/2e78c120-5e25-4ca5-b8ca-91c98c4a386a/add_router_interface
used request id req-3e364ad1-331f-4673-89a4-b51e454169e0
Manager unknown ran task network.PUT.routers.add_router_interface in
1.849557876586914s
clean_up AddSubnetToRouter:
END return value: 0
$
$ echo $?
130
** Affects: neutron (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1825162
Title:
neutron CLI not displaying anything even though an error is
encountered
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/1825162/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs