Long contrail-api startup time because of populating ifmap
Bug #1807379 reported by
Ankudinov Alexander
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
New
|
Undecided
|
Unassigned | ||
R3.2 |
In Progress
|
Undecided
|
Unassigned | ||
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
On database with about 10000 VMs contrail-api restart takes 18 minutes.
Most of this time is wasted in populating ifmap because of two things:
* redundant conversion from str to unicode and back
* bug in contrail-api leading to redundant conversion of large dicts to str
About dead code:
In line 716 of `vnc_ifmap_
```
old_metalist.
```
instead of:
```
if id2 in self_metas[
old_
```
So `old_metalist` contains dicts instead of `Metadata`.
As a consequence, if `request != old_request` later in the code is always true.
To post a comment you must log in.
Review in progress for https:/ /review. opencontrail. org/48075
Submitter: Ankudinov Alexander (<email address hidden>)