[NEUTRON-208] BGPVPN datastore in ODL missing some networks that are associated in Neutron Created: 18/Sep/20  Updated: 18/Sep/20

Status: Open
Project: neutron
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Somashekar B Assignee: Somashekar B
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The BGPVPN config DS is missing some of the networks that are associated to VPN.

  1. curl -s -u username:password -X GET http://localhost:8181/restconf/config/neutron:neutron/bgpvpns | python -m json.tool | grep -a20 30c23d34-b138-410a-a869-824208f8cf96
    "export-targets": [
    "100:3000"
    ],
    "import-targets": [
    "100:300"
    ],
    "name": "l3vpn_mgmt_t0",
    "networks": [
    "ebc8acd4-651d-48c2-9eb5-c1664f5d1b9c",
    "b122a8d1-68bf-48fe-896f-27f29cebefe4",
    "9ac9bc49-1437-4d25-b1f3-827053775c52",
    "cf1eedae-db41-4477-8fc4-368d611dbead"
    ],
    "project-id": "f5fa20e447ac49629c15cf45146b6635",
    "route-distinguishers": [
    "100:3000"
    ],
    "status": "ACTIVE",
    "tenant-id": "f5fa20e4-47ac-4962-9c15-cf45146b6635",
    "type": "neutron-bgpvpns:bgpvpn-type-l3",
    "uuid": "30c23d34-b138-410a-a869-824208f8cf96"
    },

# neutron bgpvpn-net-assoc-list 30c23d34-b138-410a-a869-824208f8cf96
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
---------------------------------------------------------------------++-------------------------------------
| id | tenant_id | network_id |
---------------------------------------------------------------------++-------------------------------------
| 165bd57c-a013-48de-84cb-c95eb8a2d98a | f5fa20e447ac49629c15cf45146b6635 | 20dab7a9-334e-490b-b544-5d204288bcfd |
| 3554cde9-9e9d-4620-8bf8-1bb6bda84994 | f5fa20e447ac49629c15cf45146b6635 | 84435e74-86db-42dc-9812-1d8ea6625bca |
| 4f9cb7b5-b4df-4680-8912-21603599b4ec | f5fa20e447ac49629c15cf45146b6635 | 9ac9bc49-1437-4d25-b1f3-827053775c52 |
| 85540f92-f5d7-4f5a-b206-4b781f560987 | f5fa20e447ac49629c15cf45146b6635 | b122a8d1-68bf-48fe-896f-27f29cebefe4 |
| 26af54f6-d966-41d1-925c-fc82bd51cf1c | f5fa20e447ac49629c15cf45146b6635 | cf1eedae-db41-4477-8fc4-368d611dbead |
| 1a165f26-8721-42ae-b8bf-170dd36d4e9f | f5fa20e447ac49629c15cf45146b6635 | ebc8acd4-651d-48c2-9eb5-c1664f5d1b9c |
---------------------------------------------------------------------++-------------------------------------

Neutron audit logs below:

2019-04-10T10:51:10,638 | qtp2080293125-2273 | REQUEST: {
"method" : "PUT",
"path" : "/controller/nb/v2/neutron/bgpvpns/30c23d34-b138-410a-a869-824208f8cf96",
"contentLength" : 638,
"body" : "{\n \"bgpvpn\":

{\n \"export_targets\": [\n \"100:3000\"\n ], \n \"name\": \"l3vpn_mgmt_t0\", \n \"route_distinguishers\": [\n \"100:3000\"\n ], \n \"routers\": [], \n \"import_targets\": [\n \"100:300\"\n ], \n \"id\": \"30c23d34-b138-410a-a869-824208f8cf96\", \n \"tenant_id\": \"f5fa20e447ac49629c15cf45146b6635\", \n \"route_targets\": [], \n \"project_id\": \"f5fa20e447ac49629c15cf45146b6635\", \n \"type\": \"l3\", \n \"networks\": [\n \"9ac9bc49-1437-4d25-b1f3-827053775c52\", \n \"b122a8d1-68bf-48fe-896f-27f29cebefe4\", \n \"cf1eedae-db41-4477-8fc4-368d611dbead\", \n \"ebc8acd4-651d-48c2-9eb5-c1664f5d1b9c\"\n ]\n }

\n}"
}
2019-04-10T10:51:10,642 | qtp2080293125-2273 | RESPONSE: {
"status" : 200,
"body" : "{\n \"bgpvpn\" :

{\n \"id\" : \"30c23d34-b138-410a-a869-824208f8cf96\",\n \"tenant_id\" : \"f5fa20e447ac49629c15cf45146b6635\",\n \"project_id\" : \"f5fa20e447ac49629c15cf45146b6635\",\n \"name\" : \"l3vpn_mgmt_t0\",\n \"admin_state_up\" : true,\n \"status\" : \"ACTIVE\",\n \"type\" : \"l3\",\n \"route_targets\" : [ ],\n \"import_targets\" : [ \"100:300\" ],\n \"export_targets\" : [ \"100:3000\" ],\n \"route_distinguishers\" : [ \"100:3000\" ],\n \"auto_aggregate\" : false,\n \"networks\" : [ \"ebc8acd4-651d-48c2-9eb5-c1664f5d1b9c\", \"b122a8d1-68bf-48fe-896f-27f29cebefe4\", \"9ac9bc49-1437-4d25-b1f3-827053775c52\", \"cf1eedae-db41-4477-8fc4-368d611dbead\" ],\n \"routers\" : [ ]\n }

\n}"
}


Generated at Wed Feb 07 20:25:50 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.