Unable to remove a port from router using port_id

Bug #1361519 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Sachin Bansal
R1.1
Fix Committed
High
Sachin Bansal

Bug Description

Build 1.10 24

Trying to disassociate a port from the router using port-id fails .

DEBUG: neutronclient.client
REQ: curl -i http://10.204.217.69:9696/v2.0/routers.json?fields=id&name=router1-21915609 -X GET -H "X-Auth-Token: <token> -H "Content-Typ
e: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

DEBUG: neutronclient.client RESP:{'date': 'Tue, 26 Aug 2014 06:54:49 GMT', 'status': '200', 'content-length': '61', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://10.204.217.69:9696/v2.0/routers.json?fields=id&name=router1-21915609'} {"routers": [{"id": "d53d4b6d-1d85-48c8-b0c1-ef98b347f575"}]}

DEBUG: neutronclient.client
REQ: curl -i http://10.204.217.69:9696/v2.0/ports.json?fields=id&id=0ee3b44c-bfdc-41fe-95a4-55412e5a2837 -X GET -H "X-Auth-Token: <token> -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

DEBUG: neutronclient.client RESP:{'date': 'Tue, 26 Aug 2014 06:54:49 GMT', 'status': '200', 'content-length': '59', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://10.204.217.69:9696/v2.0/ports.json?fields=id&id=0ee3b44c-bfdc-41fe-95a4-55412e5a2837'} {"ports": [{"id": "0ee3b44c-bfdc-41fe-95a4-55412e5a2837"}]}

DEBUG: neutronclient.client
REQ: curl -i http://10.204.217.69:9696/v2.0/routers/d53d4b6d-1d85-48c8-b0c1-ef98b347f575/remove_router_interface.json -X PUT -H "X-Auth-Token: <token> -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"port_id": "0ee3b44c-bfdc-41fe-95a4-55412e5a2837"}'

DEBUG: neutronclient.client RESP:{'date': 'Tue, 26 Aug 2014 06:54:49 GMT', 'status': '404', 'content-length': '195', 'content-type': 'application/json; charset=UTF-8'} {"NeutronError": {"message": "Router d53d4b6d-1d85-48c8-b0c1-ef98b347f575 does not have an interface with id 0ee3b44c-bfdc-41fe-95a4-55412e5a2837", "type": "ContrailNotFoundError", "detail": ""}}

DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "Router d53d4b6d-1d85-48c8-b0c1-ef98b347f575 does not have an interface with id 0ee3b44c-bfdc-41fe-95a4-55412e5a2837", "type": "ContrailNotFoundError", "detail": ""}}
ERROR: neutronclient.shell 404-{u'NeutronError': {u'message': u'Router d53d4b6d-1d85-48c8-b0c1-ef98b347f575 does not have an interface with id 0ee3b44c-bfdc-41fe-95a4-55412e5a2837', u'type': u'ContrailNotFoundError', u'detail': u''}}
DEBUG: neutronclient.shell clean_up RemoveInterfaceRouter
DEBUG: neutronclient.shell got an error: 404-{u'NeutronError': {u'message': u'Router d53d4b6d-1d85-48c8-b0c1-ef98b347f575 does not have an interface with id 0ee3b44c-bfdc-41fe-95a4-55412e5a2837', u'type': u'ContrailNotFoundError', u'detail': u''}}
root@nodec22:~/github/mine4/contrail-test#

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

Adding more details :

root@nodec22:~/github/mine4/contrail-test# neutron router-list
+--------------------------------------+------------------+-----------------------+
| id | name | external_gateway_info |
+--------------------------------------+------------------+-----------------------+
| fed6053a-b2ae-4709-979f-448dc7006572 | router1-73569122 | null |
| cf04780e-7e70-48ff-aca3-630eaabee708 | router1-53908450 | null |
| d53d4b6d-1d85-48c8-b0c1-ef98b347f575 | router1-21915609 | null |
| 186643ad-3d4f-4401-8154-60e0e3db520f | rtr1 | null |
+--------------------------------------+------------------+-----------------------+
root@nodec22:~/github/mine4/contrail-test# neutron router-port-list d53d4b6d-1d85-48c8-b0c1-ef98b347f575
+--------------------------------------+--------------------------------------+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+--------------------------------------+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 0ee3b44c-bfdc-41fe-95a4-55412e5a2837 | 0ee3b44c-bfdc-41fe-95a4-55412e5a2837 | 02:0e:e3:b4:4c:bf | {"subnet_id": "6a64a814-97c2-41c6-b230-eec0ad5b7533", "ip_address": "64.6.66.3", "port_id": "0ee3b44c-bfdc-41fe-95a4-55412e5a2837", "net_id": "805ae971-a469-46f5-8cd4-37b558aacd2a"} |
| f161ba1f-9d63-46a2-96d4-be0165c60b9c | f161ba1f-9d63-46a2-96d4-be0165c60b9c | 02:f1:61:ba:1f:9d | {"subnet_id": "c8ad8337-3af1-41b4-9c5f-598625744e95", "ip_address": "31.148.58.3", "port_id": "f161ba1f-9d63-46a2-96d4-be0165c60b9c", "net_id": "3eae8d26-5d5a-4705-96d4-776993c44797"} |
+--------------------------------------+--------------------------------------+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
root@nodec22:~/github/mine4/contrail-test#

description: updated
tags: added: blocker config neutronapi
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → Incomplete
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

This happens only when the port is added to the router using port-id instead of subnet-id

i.e.

    3 neutron net-create vedu1
    4 neutron subnet-create vedu1 10.1.1.0/24
    5 neutron port-create vedu1
    6 neutron router-create rtr1
    7 neutron router-interface-add rtr1 port=e5f15046-b43b-485e-912f-bca4a94e9dff
    8 neutron router-interface-delete rtr1 port=e5f15046-b43b-485e-912f-bca4a94e9dff

Changed in juniperopenstack:
status: Incomplete → In Progress
Revision history for this message
Sachin Bansal (sbansal) wrote :
Revision history for this message
Sachin Bansal (sbansal) wrote :
Changed in juniperopenstack:
status: In Progress → Fix Committed
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.