[Ubuntu 2464 Havana]Routing Instance ip-fabric is getting deleted from API server

Bug #1403407 reported by chhandak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.1
Fix Committed
Critical
Prakash Bailkeri
Trunk
Fix Committed
Critical
Prakash Bailkeri

Bug Description

Routing Instance IP fabric is getting deleted from API server. This is causing further issues of BGP router is getting removed.

Entry From API server
---------------------------------
root@system001:/var/log/contrail# curl -u admin:contrail123 http://127.0.0.1:8095/routing-instances| python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 436 100 436 0 0 126k 0 --:--:-- --:--:-- --:--:-- 141k
{
    "routing-instances": [
        {
            "fq_name": [
                "default-domain",
                "default-project",
                "__link_local__",
                "__link_local__"
            ],
            "href": "http://127.0.0.1:8095/routing-instance/97181be9-6a2a-4c9c-9615-65676cf9399d",
            "uuid": "97181be9-6a2a-4c9c-9615-65676cf9399d"
        },
        {
            "fq_name": [
                "default-domain",
                "demo",
                "red",
                "red"
            ],
            "href": "http://127.0.0.1:8095/routing-instance/808698d9-dc1d-4e2f-83d0-c267023d78a8",
            "uuid": "808698d9-dc1d-4e2f-83d0-c267023d78a8"
        }
    ]
}

In object logs we can se the delete operation executed by contrail-control module
------------------------------------------------------------------------------------------------------------------------------
Routing Instance Object logs

Time Source Module Id System Log routing_instance [RoutingInstanceInfo]
2014-12-17 12:19:06:420:965 system002 contrail-control "{
  name: default-domain:default-project:ip-fabric:__default__,
  operation: Delete,
  peer: 10.84.50.201,
  hostname: system002
}"
2014-12-17 12:46:16:402:262 system001 contrail-control default-domain:default-project:ip-fabric:__default__ default-domain:default-project:ip-fabric 0 Routing Instance Import Targets Export Targets Virtual Network VN Index undefined
2014-12-17 12:19:06:423:538 system002 contrail-control default-domain:default-project:ip-fabric:__default__ 10.84.50.201 Routing Instance Peer undefined
2014-12-17 12:19:06:422:500 system002 contrail-control default-domain:default-project:ip-fabric:__default__ 10.84.50.1 Routing Instance Peer undefined
2014-12-17 12:19:06:421:144 system002 contrail-control default-domain:default-project:ip-fabric:__default__ 10.84.50.1 Routing Instance Peer undefined
2014-12-17 12:19:06:421:132 system002 contrail-control "{
  name: default-domain:default-project:ip-fabric:__default__,
  operation: Delete,
  peer: 10.84.50.1,
  hostname: system002
}"
2014-12-17 12:19:06:420:980 system002 contrail-control default-domain:default-project:ip-fabric:__default__ 10.84.50.201 Routing Instance Peer undefined
2014-12-17 12:46:15:793:787 system002 contrail-control default-domain:default-project:ip-fabric:__default__ default-domain:default-project:ip-fabric 0 Routing Instance Import Targets Export Targets Virtual Network VN Index undefined
2014-12-17 12:19:06:401:309 system001 contrail-control default-domain:default-project:ip-fabric:__default__ 10.84.50.201 Routing Instance Peer undefined
2014-12-17 12:19:06:401:170 system001 contrail-control default-domain:default-project:ip-fabric:__default__ 10.84.50.2 Routing Instance Peer undefined
2014-12-17 12:19:06:398:233 system001 contrail-control default-domain:default-project:ip-fabric:__default__ 10.84.50.2 Routing Instance Peer undefined
2014-12-17 12:19:06:398:228 system001 contrail-control "{
  name: default-domain:default-project:ip-fabric:__default__,
  operation: Delete,
  peer: 10.84.50.2,
  hostname: system001
}"
2014-12-17 12:19:06:398:151 system001 contrail-control default-domain:default-project:ip-fabric:__default__ 10.84.50.201 Routing Instance Peer undefined
2014-12-17 12:19:06:398:141 system001 contrail-control "{
  name: default-domain:default-project:ip-fabric:__default__,
  operation: Delete,
  peer: 10.84.50.201,
  hostname: system001
}"

BGP peer object logs
---------------------------------
2014-12-17 12:19:06:407:77system002contrail-controlBgp Peer default-domain:default-project:ip-fabric:__default__:system002:default-domain:default-project:ip-fabric:__default__:system001 RECV Notification with Code 6 and SubCode 3 ( Cease:Administrator has unconfigured the peer )

chhandak (chhandak)
Changed in juniperopenstack:
importance: Undecided → Critical
tags: added: customer
information type: Proprietary → Public
Revision history for this message
chhandak (chhandak) wrote :
chhandak (chhandak)
tags: added: config
Nischal Sheth (nsheth)
tags: removed: contrail-control
Revision history for this message
Nagabhushana R (bhushana) wrote :

Looks like we are allowing delete of ip-fabric vn from neutron cli.
This results in routing instance and bgp router left behind without parent.
We should put config check to avoid this. That would solve both issues you showed me. (schema crash and bgp peering issue)

Thanks, Prakash

Revision history for this message
Prakash Bailkeri (prakashmb) wrote :
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.