← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1460408] [NEW] fip namespace is not created when doing migration from legacy router to DVR

 

Public bug reported:

When creating a legacy router and migrating to a distributed router
'fip' namespaces are not created on the compute nodes.


Error from L3 Agent log:
===================
2015-05-31 13:35:55.935 103776 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'fip-9a0e39c3-97a1-4a93-8ce7-fd7d804fae2b', 'ip', '-o', 'link', 'show', 'fpr-2965187d-4'] create_process /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:84
2015-05-31 13:35:55.991 103776 DEBUG neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'fip-9a0e39c3-97a1-4a93-8ce7-fd7d804fae2b', 'ip', '-o', 'link', 'show', 'fpr-2965187d-4']
Exit code: 1
Stdin:
Stdout:
Stderr: Cannot open network namespace "fip-9a0e39c3-97a1-4a93-8ce7-fd7d804fae2b": No such file or directory
 execute /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:134
2015-05-31 13:35:55.992 103776 DEBUG neutron.agent.l3.router_info [-] No Interface for floating IPs router: 2965187d-452c-4951-88eb-4053cea88dae process_floating_ip_addresses /usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py:229

How to reproduce
===============
1. Create a legacy router 
    # neutron router-create --distributed=False router1

2. Associate the router with an internal network 
    # neutron router-interface-add router1 <subnet-id>

3. Set the router's gateway
    # neutron router-gateway-set router1 <external network>

4. Launch an instnace
     # nova boot --flavor m1.small --image fedora --key-name cloudkey  --nic net-id=<internal network> vm1

5. Associate the Instance with a floating IP

6. Check connectivity to an external network

7. Migrate the router to a distributed router1
    # neutron router-update --admin_state_up=False router1
    # neutron router-update --distributed=True router
    # neutron router-update --admin_state_up=True router1

8. Verify the 'snat' namespace is created on the 'dvr_snat' node but
'fip' namespace aren't created on the compute nodes.

Version
======
RHEL 7.1
python-neutron-2015.1.0-1.el7ost.noarch

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  fip namespace is not created when doing migration from legacy router
  to DVR

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  When creating a legacy router and migrating to a distributed router
  'fip' namespaces are not created on the compute nodes.

  
  Error from L3 Agent log:
  ===================
  2015-05-31 13:35:55.935 103776 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'fip-9a0e39c3-97a1-4a93-8ce7-fd7d804fae2b', 'ip', '-o', 'link', 'show', 'fpr-2965187d-4'] create_process /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:84
  2015-05-31 13:35:55.991 103776 DEBUG neutron.agent.linux.utils [-]
  Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'fip-9a0e39c3-97a1-4a93-8ce7-fd7d804fae2b', 'ip', '-o', 'link', 'show', 'fpr-2965187d-4']
  Exit code: 1
  Stdin:
  Stdout:
  Stderr: Cannot open network namespace "fip-9a0e39c3-97a1-4a93-8ce7-fd7d804fae2b": No such file or directory
   execute /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:134
  2015-05-31 13:35:55.992 103776 DEBUG neutron.agent.l3.router_info [-] No Interface for floating IPs router: 2965187d-452c-4951-88eb-4053cea88dae process_floating_ip_addresses /usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py:229

  How to reproduce
  ===============
  1. Create a legacy router 
      # neutron router-create --distributed=False router1

  2. Associate the router with an internal network 
      # neutron router-interface-add router1 <subnet-id>

  3. Set the router's gateway
      # neutron router-gateway-set router1 <external network>

  4. Launch an instnace
       # nova boot --flavor m1.small --image fedora --key-name cloudkey  --nic net-id=<internal network> vm1

  5. Associate the Instance with a floating IP

  6. Check connectivity to an external network

  7. Migrate the router to a distributed router1
      # neutron router-update --admin_state_up=False router1
      # neutron router-update --distributed=True router
      # neutron router-update --admin_state_up=True router1

  8. Verify the 'snat' namespace is created on the 'dvr_snat' node but
  'fip' namespace aren't created on the compute nodes.

  Version
  ======
  RHEL 7.1
  python-neutron-2015.1.0-1.el7ost.noarch

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


Follow ups

References