Long contrail-api startup time because of populating ifmap

Bug #1807379 reported by Ankudinov Alexander
6
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_client.py` there is an error:

```
old_metalist.append(self_metas[meta_name])
```

instead of:

```
if id2 in self_metas[meta_name]:
    old_metalist.append(self_metas[meta_name][id2])
```

So `old_metalist` contains dicts instead of `Metadata`.

As a consequence, if `request != old_request` later in the code is always true.

Tags: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/48075
Submitter: Ankudinov Alexander (<email address hidden>)

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.