← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1554066] Re: after adding network port to router , static route is not removed from options- metadata- enable_isolated_metadata = True

 

I am going to close this bug as invalid. The static route to router
interface seems useless. Bug according to bug 1460793, it is for windows
VM. I think the bug description in that bug can explain why the route is
needed.

** Changed in: neutron
       Status: Confirmed => Invalid

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

Title:
  after adding network port to router , static route is not removed from
  options- metadata- enable_isolated_metadata = True

Status in neutron:
  Invalid

Bug description:
  metadata- enable_isolated_metadata = True: After attaching network to
  router and restarting dhcp agent, static route is not removed from
  options

  In /etc/neutron/dhcp_agent.ini:
  force_metadata = False
  enable_isolated_metadata = True
  enable_metadata_network = False

  
  The commands show that the networl port is attached to the router r1:

  [stack@undercloud ~]$ neutron net-list 
  +--------------------------------------+----------------------------------------------------+-------------------------------------------------------+
  | id                                   | name                                               | subnets                                               |
  +--------------------------------------+----------------------------------------------------+-------------------------------------------------------+
  | 975e1494-7596-491a-ac0c-de12a3e366f0 | HA network tenant 0402cbe1a718487388d3dec5ed992ed6 | fdccb47e-9f09-40d3-b9f7-ded9c52a4710 169.254.192.0/18 |
  | e0d2d44f-cb27-48df-acac-b5e8a75e7851 | nova                                               | d9d35981-e33a-4bc4-875e-80103b36aeb7 192.168.1.0/24   |
  | 107277c1-ba33-4e50-93b2-750c8bc594a6 | int_net                                            | 058d7bdb-ebaf-48eb-8705-17c7d0ce2edc 192.168.2.0/24   |
  +--------------------------------------+----------------------------------------------------+-------------------------------------------------------+


  [stack@undercloud ~]$ neutron router-port-list r1
  +--------------------------------------+-------------------------------------------------+-------------------+--------------------------------------------------------------------------------------+
  | id                                   | name                                            | mac_address       | fixed_ips                                                                            |
  +--------------------------------------+-------------------------------------------------+-------------------+--------------------------------------------------------------------------------------+
  | 101b079e-bced-43d1-8c28-7e8a92b15ebc | HA port tenant 0402cbe1a718487388d3dec5ed992ed6 | fa:16:3e:0d:85:af | {"subnet_id": "fdccb47e-9f09-40d3-b9f7-ded9c52a4710", "ip_address": "169.254.192.1"} |
  | cf129905-b53c-4e5b-b4a7-b27ab0393493 | HA port tenant 0402cbe1a718487388d3dec5ed992ed6 | fa:16:3e:f6:bf:ab | {"subnet_id": "fdccb47e-9f09-40d3-b9f7-ded9c52a4710", "ip_address": "169.254.192.2"} |
  | eb5a7a0c-a392-4a17-98b5-99d9c3130349 |                                                 | fa:16:3e:be:99:10 | {"subnet_id": "058d7bdb-ebaf-48eb-8705-17c7d0ce2edc", "ip_address": "192.168.2.1"}   |
  +--------------------------------------+-------------------------------------------------+-------------------+--------------------------------------------------------------------------------------+


  Here we will see that the static route still exists:

  [root@overcloud-controller-2 ~]# cat /var/lib/neutron/dhcp/107277c1-ba33-4e50-93b2-750c8bc594a6/opts 
  tag:tag0,option:dns-server,10.35.28.28
  tag:tag0,option:classless-static-route,169.254.169.254/32,192.168.2.1,0.0.0.0/0,192.168.2.1
  tag:tag0,249,169.254.169.254/32,192.168.2.1,0.0.0.0/0,192.168.2.1
  tag:tag0,option:router,192.168.2.1[root@overcloud-controller-2 ~]# 

  
  With enable_isolated_metadata = True configuration - When attaching network port to a neutron router, Static route in /var/lib/neutron/NETID/opts should be removed ( no agent restrt should be needed - https://bugs.launchpad.net/neutron/+bug/1549860 ) 

  
  Liberty

  Reproducible.

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


References