config: avoid reading mapping from useragent-kv if subnet uuid already known
Bug #1413864 reported by
Hampapur Ajay
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R1.1 |
Fix Committed
|
High
|
Hampapur Ajay | |||
R2.0 |
Fix Committed
|
High
|
Hampapur Ajay | |||
R2.1 |
Fix Committed
|
High
|
Hampapur Ajay | |||
Trunk |
Fix Committed
|
High
|
Hampapur Ajay |
Bug Description
subnet_key = self._subnet_
sn_id = self._subnet_
Reading of sn_id via useragent keyvalue datastore is only needed in for old subnets (before schema supported subnet_uuid). Doing this unconditionally causes net-list to slow down at scale.
Changed in juniperopenstack: | |
assignee: | nobody → Hampapur Ajay (hajay) |
tags: | added: neutron |
Changed in juniperopenstack: | |
importance: | Undecided → High |
To post a comment you must log in.
Reviewed: https:/ /review. opencontrail. org/7055 github. org/Juniper/ contrail- controller/ commit/ 5b753500d0d2f65 2488c981d14e7f6 3aa6717542
Committed: http://
Submitter: Zuul
Branch: R1.10
commit 5b753500d0d2f65 2488c981d14e7f6 3aa6717542
Author: Hampapur Ajay <email address hidden>
Date: Thu Jan 22 21:39:00 2015 -0800
Do not read subnet-uuid from useragent kv if not necessary.
Since we don't check+store in useragent-kv for subnet mapping
in common case, handle this when neutron is asked about a subnet
it doesn't know (created by contrail API/UI) and do the mapping
store in the exception case.
Change-Id: Ia5531059b3eaec c3cff2bf5a3de67 1aad0a17bc3 a916a2e62a8317f b851b407a7)
Closes-Bug: #1413864
(cherry picked from commit a7bdf2fee2a8b8b