VM launch fails . Subnet uuids different in API server and neutron

Bug #1381779 reported by Sachin Bansal
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Released
Undecided
Sachin Bansal
R1.1
Fix Released
Undecided
Sachin Bansal
R1.30
Fix Released
Undecided
Sachin Bansal

Bug Description

This is on Icehouse ubuntu build 55, single node 10.204.217.64

Networks / subnets created from Contrail UI. Subnet uuid in api server and
neutron don¹t seem to match.

Neutron:
--------
95f82c7c-cdbb-4c72-94e1-2b7a03b475cf | | 11.1.1.0/30 | {"start":
"11.1.1.2", "end": "11.1.1.2"} |
| f8940525-86dd-4d02-b606-39437c9a0d5d | | 10.1.1.0/30 | {"start":
"10.1.1.2", "end": "10.1.1.2"}

API Server:
-----------
"href":
"http://10.204.217.64:8082/network-ipam/edf3f519-373a-4690-80f6-eb1bbf16f7f
b²,

{"subnet": {"ip_prefix": "11.1.1.0", "ip_prefix_len": 30},
"subnet_uuid": "354fa5e2-165f-46b0-84f1-539280b88b92²,

{"subnet": {"ip_prefix": "10.1.1.0", "ip_prefix_len": 30},
"subnet_uuid": "ac0b66eb-8150-42f8-883e-9453ae5e3424",

Tags: config
Sachin Bansal (sbansal)
Changed in juniperopenstack:
milestone: none → r2.0-fcs
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → In Progress
Pedro Marques (5-roque)
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/3798
Committed: http://github.org/Juniper/contrail-controller/commit/13d8d21feaee016210a3e3a8c1fc55b4feb7566c
Submitter: Zuul
Branch: R1.10

commit 13d8d21feaee016210a3e3a8c1fc55b4feb7566c
Author: Sachin Bansal <email address hidden>
Date: Wed Oct 15 14:56:43 2014 -0700

If the API client updates a network object with subnets and does not send a subnet_uuid, we were allocating a new UUID. If the subnet already exists, we should reuse the subnet_uuid. Now, we read from cassandra before generating a new UUID.

Change-Id: I13426663c8a2a8e79fbf170dffb81c726506cee1
Closes-Bug: 1381779

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/3799
Committed: http://github.org/Juniper/contrail-controller/commit/0f67b7da211fb961ffdf1f3b671d2fd7d3b49124
Submitter: Zuul
Branch: master

commit 0f67b7da211fb961ffdf1f3b671d2fd7d3b49124
Author: Sachin Bansal <email address hidden>
Date: Wed Oct 15 14:56:43 2014 -0700

If the API client updates a network object with subnets and does not send a subnet_uuid, we were allocating a new UUID. If the subnet already exists, we should reuse the subnet_uuid. Now, we read from cassandra before generating a new UUID.

Change-Id: I13426663c8a2a8e79fbf170dffb81c726506cee1
Closes-Bug: 1381779
(cherry picked from commit c2f71af5f2e9a6f31ce65e48c0e4a4c62e82f0c8)

Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: In Progress → Fix Committed
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.