[Expired for neutron because there has been no activity for 60 days.]

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

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

Title:
  l3-agent fail to add custom route(s) to Router

Status in OpenStack Neutron (virtual network service):
  Expired

Bug description:
  I use Quantum (grizzly version) with IP network namespace.
  I add custom route to quantum-router like this:
  # quantum router-show c0e3d087-784b-4091-yyyy
  
+-----------------------+---------------------------------------------------------------+
  | Field                 | Value                                               
          |
  
+-----------------------+---------------------------------------------------------------+
  | admin_state_up        | True                                                
          |
  | external_gateway_info | {"network_id": "01ece62c-46b4-4d46-xxxx"}        |
  | id                    | c0e3d087-784b-4091-yyyy                          |
  | name                  | Backbone                                            
          |
  | routes                | {"destination": "192.168.0.0/16", "nexthop": 
"192.168.136.1"} |
  | status                | ACTIVE                                              
          |
  | tenant_id             | 55634eeezzzz                              |
  
+-----------------------+---------------------------------------------------------------+

  When I start/restart quantum-l3-agent, everything ok, except this router 
can't set custom route.
  I check log and saw:
  013-09-20 14:37:22    DEBUG [quantum.agent.l3_agent] Added route entry is 
'{u'nexthop': u'192.168.136.1', u'destination': u'192.168.0
  .0/16'}'
  2013-09-20 14:37:22    DEBUG [quantum.agent.linux.utils] Running command: 
['sudo', 'ip', 'netns', 'exec', 'qrouter-c0e3d087-784b-4091-
  a7a8-993d91d38308', 'ip', 'route', 'replace', 'to', '192.168.0.0/16', 'via', 
'192.168.136.1']
  2013-09-20 14:37:23    DEBUG [quantum.agent.linux.utils]
  Command: ['sudo', 'ip', 'netns', 'exec', 
'qrouter-c0e3d087-784b-4091-a7a8-993d91d38308', 'ip', 'route', 'replace', 'to', 
'192.168.0.0/
  16', 'via', '192.168.136.1']
  Exit code: 1
  Stdout: ''
  Stderr: 'sudo: no tty present and no askpass program specified\nSorry, try 
again.\nsudo: no tty present and no askpass program specifi
  ed\nSorry, try again.\nsudo: no tty present and no askpass program 
specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n
  '

  And I must run this command manually, after quantum-l3-agent complete on 
initialization:
  # ip netns exec qrouter-c0e3d087-784b-4091-yyyy ip route replace to 
192.168.0.0/16 via 192.168.136.1
  (and everything ok)

  I don't think something wrong in sudoers.d/* or rootwrap.d/*, because
  every command run by quantum-l3-agent is sucsess, except this one.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to