← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1813253] [NEW] Neutron-server takes a long time when creating a port with multiple addresses at once

 

Public bug reported:

openstack allinone.

16 cpus with 2.40GHz
16G memery

only one subnet in a network.

neutron port-create --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
a3f2-0b02b752c098 66105fab-7ea9-4efc-b9c8-1839f742bdd1

When there are already 6300+ addresses, it takes 50s to allocate the
address part every time the command is run.

in _generate_ips,
2s+ for list_allocations  (not fixed in this fix)
2s+ for ip_allocations.add(ipallocation.ip_address)
10 times.

https://github.com/drkjam/netaddr/issues/171

** Affects: neutron
     Importance: Undecided
     Assignee: Chengqian Liu (liuchengqian90)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Chengqian Liu (liuchengqian90)

** Description changed:

  openstack allinone.
  
- 16 cpus with 2.40GHz 
+ 16 cpus with 2.40GHz
  16G memery
  
  only one subnet in a network.
  
  neutron port-create --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 66105fab-7ea9-4efc-b9c8-1839f742bdd1
  
  When there are already 6200 addresses, it takes 50s to allocate the
  address part every time the command is run.
  
  in _generate_ips,
- 2s+ for list_allocations
- 2s+ for ip_allocations.add(ipallocation.ip_address) 
+ 2s+ for list_allocations  (not fixed in this fix)
+ 2s+ for ip_allocations.add(ipallocation.ip_address)
  10 times.
  
  https://github.com/drkjam/netaddr/issues/171

** Description changed:

  openstack allinone.
  
  16 cpus with 2.40GHz
  16G memery
  
  only one subnet in a network.
  
  neutron port-create --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 66105fab-7ea9-4efc-b9c8-1839f742bdd1
  
- When there are already 6200 addresses, it takes 50s to allocate the
+ When there are already 6300+ addresses, it takes 50s to allocate the
  address part every time the command is run.
  
  in _generate_ips,
  2s+ for list_allocations  (not fixed in this fix)
  2s+ for ip_allocations.add(ipallocation.ip_address)
  10 times.
  
  https://github.com/drkjam/netaddr/issues/171

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1813253

Title:
  Neutron-server takes a long time when creating a port with multiple
  addresses at once

Status in neutron:
  New

Bug description:
  openstack allinone.

  16 cpus with 2.40GHz
  16G memery

  only one subnet in a network.

  neutron port-create --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 --fixed-ip subnet_id=474b9575-b569-48dd-
  a3f2-0b02b752c098 66105fab-7ea9-4efc-b9c8-1839f742bdd1

  When there are already 6300+ addresses, it takes 50s to allocate the
  address part every time the command is run.

  in _generate_ips,
  2s+ for list_allocations  (not fixed in this fix)
  2s+ for ip_allocations.add(ipallocation.ip_address)
  10 times.

  https://github.com/drkjam/netaddr/issues/171

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1813253/+subscriptions


Follow ups