[Build 54]:Ubuntu: routing instances present in API for deleted VN

Bug #1336637 reported by alok kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Sachin Bansal

Bug Description

setup:
env.roledefs = {
    'all': [host1,host2,host3,host4,host5],
    'cfgm': [host1,host2,host5],
    'openstack':[host2],
    'control': [host2,host1],
    'compute': [host3,host4],
    'collector': [host2,host1],
    'webui': [host1],
    'database': [host1,host2,host5],
    'build': [host_build],
}

env.hostnames = {
    'all': ['nodeh1', 'nodeg18', 'nodeh8', 'nodec11', 'nodec12']
}

there is routing instance present for already deleted VN "vn-mx", which may be because of schema crash(bug 1335831) at the same time when VN was deleted.

root@nodeg18:~# curl http://nodeh1.englab.juniper.net:8082/routing-instance/262e9eef-f71b-48f1-8ffd-96362c045911
{"routing-instance": {"fq_name": ["default-domain", "admin", "vn-mx", "vn-mx"], "uuid": "262e9eef-f71b-48f1-8ffd-96362c045911", "parent_uuid": "1c798324-f276-4d5c-8668-bab391a3e82e", "parent_href": "http://nodeh1.englab.juniper.net:8082/virtual-network/1c798324-f276-4d5c-8668-bab391a3e82e", "parent_type": "virtual-network", "href": "http://nodeh1.englab.juniper.net:8082/routing-instance/262e9eef-f71b-48f1-8ffd-96362c045911", "id_perms": {"enable": true, "description": null, "created": "2014-06-27T09:46:27.882720", "uuid": {"uuid_mslong": 2751311175850084593, "uuid_lslong": 10375614275942373649}, "last_modified": "2014-06-27T09:57:57.907709", "permissions": {"owner": "cloud-admin", "owner_access": 7, "other_access": 7, "group": "cloud-admin-group", "group_access": 7}}, "route_target_refs": [{"to": ["target:64512:20001"], "href": "http://nodeh1.englab.juniper.net:8082/route-target/8544b924-ca2a-42ba-8a0d-e9def070a610", "attr": {"import_export": null}, "uuid": "8544b924-ca2a-42ba-8a0d-e9def070a610"}, {"to": ["target:64512:11"], "href": "http://nodeh1.englab.juniper.net:8082/route-target/982a4931-e1c1-4cbc-b19a-7b56289769a3", "attr": {"import_export": null}, "uuid": "982a4931-e1c1-4cbc-b19a-7b56289769a3"}], "name": "vn-mx"}}

root@nodeg18:~# neutron net-list
+--------------------------------------+-------------------------+--------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+-------------------------+--------------------------------------------------------+
| e861417f-a1a2-423a-941b-b9a11ccaf794 | vn--float | f6e817c9-ec0e-4e4f-9557-3f574d3066f5 9.9.9.0/24 |
| 0c2f067c-cf69-4973-952c-93d2f5e15813 | vnet1 | 980c71b9-19ef-4dc8-9ca6-bb542069702e 10.1.1.0/24 |
| | | 2c4b761f-d80f-4867-b883-23b205e06d43 11.1.1.0/24 |
| d34a809d-6585-415f-bdb2-aee9055d6c71 | vnet3 | 84abd84f-9980-44d4-83d7-3f5a9743e08f 10.1.3.0/24 |
| | | 4ebd6439-a11d-49b4-a5ae-f0068e52a9c2 11.1.3.0/24 |
| 75999242-60c1-4c61-b582-7f731f55587b | vnet4 | 442048b1-8fa2-4abf-a6ef-5a02fcf39c13 10.1.4.0/24 |
| | | 4eb5d63e-b420-47ff-b39d-bece14977fab 11.1.4.0/24 |
| c0858686-3a94-4c20-8662-b5e913d1da4a | svc-vn-right | a1bf52c3-1644-4234-b3c6-5823b61b867a 250.250.3.0/24 |
| 05d4fc36-d13d-4506-ae6c-28c0a6378eb8 | vnet2 | c96dd80a-c592-4e17-8ab7-ccdb3e3339e1 10.1.2.0/24 |
| | | eea58f60-8ed0-4c0a-96ed-c271abfc6674 11.1.2.0/24 |
| de250558-c173-48bc-8b23-d32184ee7031 | __link_local__ | |
| afb11f31-e1e2-4b18-95af-387751d362c2 | default-virtual-network | |
| ad9c0b4b-6288-47d9-b885-2c5e6a68f512 | vn1 | 3eb36a35-3f99-4db8-9980-f9b3628db015 10.204.220.192/29 |
| 8162d07e-5564-4ac2-84ac-d05406ed9b2d | svc-vn-left | 5f501d6f-44be-40dd-82ea-96be834e30f8 250.250.2.0/24 |
| 43686b07-040b-4b0c-aa74-49c0ba9942b7 | ip-fabric | |
| 39949d3a-4f31-40e6-a7a9-2c072a321bc5 | svc-vn-mgmt | 137edf33-279e-44b5-b66f-9894eadb9e81 250.250.1.0/24 |
+--------------------------------------+-------------------------+--------------------------------------------------------+

Prakash is aware about the issue.
all logs are @mayamruga:/home/bhushana/Documents/technical/bugs/1335831

Tags: api config
Revision history for this message
alok kumar (kalok) wrote :
Download full text (3.5 KiB)

for deleted SI again, we still have routing instances in API.

SI-2 is deleted and removed from policy but routing instance is still present.

there is no SI with name SI-2:
root@nodeh1:~# curl http://nodeh1.englab.juniper.net:8082/service-instances
{"service-instances": [{"href": "http://nodeh1.englab.juniper.net:8082/service-instance/f96fdbf9-377b-4d5d-a38c-8668f5cf3abb", "fq_name": ["default-domain", "admin", "firewall-inNat"], "uuid": "f96fdbf9-377b-4d5d-a38c-8668f5cf3abb"}, {"href": "http://nodeh1.englab.juniper.net:8082/service-instance/4f9cd4a0-8aa4-43ec-a411-929ae34ba83b", "fq_name": ["default-domain", "admin", "si-3"], "uuid": "4f9cd4a0-8aa4-43ec-a411-929ae34ba83b"}]}

but routing instance still exist:
root@nodeh1:~# curl http://nodeh1.englab.juniper.net:8082/routing-instance/c9f4c2c6-d7e9-4ebb-87b1-df75478f9aef
{"routing-instance": {"fq_name": ["default-domain", "admin", "vn1", "service-default-domain_admin_vn1-default-domain_admin_vn--float-default-domain_admin_si-2"], "uuid": "c9f4c2c6-d7e9-4ebb-87b1-df75478f9aef", "parent_uuid": "ad9c0b4b-6288-47d9-b885-2c5e6a68f512", "parent_href": "http://nodeh1.englab.juniper.net:8082/virtual-network/ad9c0b4b-6288-47d9-b885-2c5e6a68f512", "parent_type": "virtual-network", "href": "http://nodeh1.englab.juniper.net:8082/routing-instance/c9f4c2c6-d7e9-4ebb-87b1-df75478f9aef", "id_perms": {"enable": true, "description": null, "created": "2014-06-27T10:34:11.348611", "uuid": {"uuid_mslong": 14552470455222619835, "uuid_lslong": 9777841960802818799}, "last_modified": "2014-06-27T10:37:03.455076", "permissions": {"owner": "cloud-admin", "owner_access": 7, "other_access": 7, "group": "cloud-admin-group", "group_access": 7}}, "route_target_refs": [{"to": ["target:64512:15"], "href": "http://nodeh1.englab.juniper.net:8082/route-target/5a4d5054-0dfc-46b8-b07c-437546f40022", "attr": {"import_export": null}, "uuid": "5a4d5054-0dfc-46b8-b07c-437546f40022"}], "routing_instance_refs": [{"to": ["default-domain", "admin", "vn1", "vn1"], "href": "http://nodeh1.englab.juniper.net:8082/routing-instance/60fd2ded-77b7-4ea6-8f06-2dcedb63d94c", "attr": {}, "uuid": "60fd2ded-77b7-4ea6-8f06-2dcedb63d94c"}], "name": "service-default-domain_admin_vn1-default-domain_admin_vn--float-default-domain_admin_si-2"}}

root@nodeh1:~# curl http://nodeh1.englab.juniper.net:8082/routing-instance/05c8eb5d-1b5d-4269-8a92-464b794fd548
{"routing-instance": {"fq_name": ["default-domain", "admin", "vn--float", "service-default-domain_admin_vn--float-default-domain_admin_vn1-default-domain_admin_si-2"], "uuid": "05c8eb5d-1b5d-4269-8a92-464b794fd548", "parent_uuid": "e861417f-a1a2-423a-941b-b9a11ccaf794", "parent_href": "http://nodeh1.englab.juniper.net:8082/virtual-network/e861417f-a1a2-423a-941b-b9a11ccaf794", "parent_type": "virtual-network", "href": "http://nodeh1.englab.juniper.net:8082/routing-instance/05c8eb5d-1b5d-4269-8a92-464b794fd548", "id_perms": {"enable": true, "description": null, "created": "2014-06-27T10:34:11.551759", "uuid": {"uuid_mslong": 416841750655353449, "uuid_lslong": 9985120613805577544}, "last_modified": "2014-06-27T10:37:03.519015", "permissions": {"owner": "cloud-admin", "owner_access": 7, "other_access": 7, "gro...

Read more...

Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: nobody → Sachin Bansal (bansalsachin)
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → In Progress
Sachin Bansal (sbansal)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/3172
Committed: http://github.org/Juniper/contrail-controller/commit/5e3a66cf4bc0b65b4289f2779ff9dc9fa068dbe8
Submitter: Zuul
Branch: master

commit 5e3a66cf4bc0b65b4289f2779ff9dc9fa068dbe8
Author: Sachin Bansal <email address hidden>
Date: Tue Sep 23 14:50:43 2014 -0700

Delete stale service chain objects when schema transformer restarts.

Change-Id: Id5855df46dd1b94339093e664058e5d3e9912566
Closes-Bug: 1336637

Sachin Bansal (sbansal)
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.