← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1622917] Re: Failed to update router to ha mode when overlapping is disabled

 

Thanks. I reproduced.

However, this is not bug and it's not related migration from legacy to
HA mode. L3HA originally expects "allow_overlapping_ips = True"[1].
Because HA router needs 169.254.192.0/18 network (this is constant value
by l3_ha_net_cidr) but "allow_overlapping_ips = False" doesn't allow to
create the network for each project. If we can use L3HA with
"allow_overlapping_ips = False", we must implement auto generated cidr
network instead of l3_ha_net_cidr. It's not impossible but not
reasnable. It's better to just use "allow_overlapping_ips = True".

[1]: http://docs.openstack.org/liberty/networking-guide/scenario-l3ha-
ovs.html

** Changed in: neutron
       Status: Incomplete => Opinion

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

Title:
  Failed to update router to ha mode when overlapping is disabled

Status in neutron:
  Opinion

Bug description:
  I tried to move users routers from non-ha to ha mode. I made neutron
  router-update  $rid  --ha true; It works but only few times. When I
  try to do it on fourth of fifth router - it fails with error:

  Invalid input for operation: Requested subnet with cidr:
  169.254.192.0/18 for network: 313e3e5e-79a8-42cd-bdf3-5d385682197a
  overlaps with another subnet.

  Unfortunately I did it in a loop with all routers, so all of remaining
  non-ha routers became unusable. Network node with l3 agent was unable
  to create virtual router giving error:

  2016-09-12 19:18:35.827 9357 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/neutron/scheduler/l3_agent_scheduler.py", line 293, in create_ha_port_and_bind
  2016-09-12 19:18:35.827 9357 ERROR oslo_service.periodic_task     ha_network.network.id, tenant_id)
  2016-09-12 19:18:35.827 9357 ERROR oslo_service.periodic_task
  2016-09-12 19:18:35.827 9357 ERROR oslo_service.periodic_task AttributeError: 'NoneType' object has no attribute 'network'

  Trying to reverse operation "neutron router-update  $rid --ha false"
  also fails (with the same error in neutron log), so after spending few
  hours on diagnose the problem I found source of the problem and
  solution. I had to manualy change ha mode in database
  (router_extra_attributes  table) and routers became stable and
  working. The problem is that allow_overlapping_ips = False prevents
  neutron from creating HA network tenants which are using the same
  subnets 169.254.x.0/18.

  My Openstack version is Liberty. So if there is no solution yet, let me propose two solutions:
  - allow to create ha networks regardless of allow_overlapping_ips setting (but I think it can be hard to develop such exception)
  - not to change ha mode of the router if ha network creating failed (the procedure create_ha_port_and_bind needs additonal exception).

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


References