Create a method to add multiple IP addresses in one call
Bug #1987281 reported by
Rodolfo Alonso
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Rodolfo Alonso |
Bug Description
When the OVN metadata agent creates a local namespace in a compute node, it creates a network namespace, a veth pair between the OVS instance and the network metadata namespace and then assigns the each IP of the metadata port. The number of IP addresses depend on the number of subnets. If this number is high, setting each IP address individually will take some time.
This bug proposes to create a method to pass multiple IP addresses that will be set in one privsep call.
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
Changed in neutron: | |
importance: | Undecided → Low |
tags: | added: l3-ipam-dhcp |
tags: | added: py |
tags: |
added: privsep pyroute2 removed: l3-ipam-dhcp py |
Changed in neutron: | |
status: | New → In Progress |
To post a comment you must log in.
Hi Rodolfo,
I have tried this when looking into implementation of bug1981113. Unless I am missing something, doing this change only adds minimal gains. Take a look at my WIP review, did I miss something? /review. opendev. org/c/openstack /neutron/ +/855677
https:/
Here is my manual test:
I created a single network with 801 IPv4 subnets of slightly different net masks. This was on a "all in one" devstack environment.
Without the change a namespace was created on average in about 16.83 seconds
With the change, the average was about 15.72 seconds
I think it will not hurt to still have this new function even if the performance is minimal.