yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04175
[Bug 1180734] Re: Grizzly : l3-agent is not able to attach the device representing "network:router_gateway"
[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/1180734
Title:
Grizzly : l3-agent is not able to attach the device representing
"network:router_gateway"
Status in OpenStack Neutron (virtual network service):
Expired
Bug description:
Hi,
I am trying to setup the multi-node environment for grizzly by using the instruction in the link:
https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_MultiNode/OpenStack_Grizzly_Install_Guide.rst.
we are getting errror in l3-agent.log file while setting the gateway for the router.
Below is the steps , I used to create the external network and setting the gateway.
root@ControllerOS:~# keystone tenant-list
+----------------------------------+-------------+---------+
| id | name | enabled |
+----------------------------------+-------------+---------+
| 942a2647fc264c1eba700fcdefba9762 | admin | True |
| 940bb16dbd2548ebbe71f141db2d9e23 | project_one | True |
| adf48648c5f9414dbbb768a172911363 | service | True |
+----------------------------------+-------------+---------+
root@ControllerOS:~#
root@ControllerOS:~# quantum net-create --tenant-id 942a2647fc264c1eba700fcdefba9762 ext-net --router:external true
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | d57d10e5-ae54-4c5b-9793-de810c7c90c8 |
| name | ext-net |
| provider:network_type | gre |
| provider:physical_network | |
| provider:segmentation_id | 1 |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 942a2647fc264c1eba700fcdefba9762 |
+---------------------------+--------------------------------------+
root@ControllerOS:~# quantum subnet-create --tenant-id 942a2647fc264c1eba700fcdefba9762 --allocation-pool start=10.19.11.170,end=10.19.11.180 --gateway 10.19.11.1 ext-net 10.19.11.0/24
Created a new subnet:
+------------------+--------------------------------------------------+
| Field | Value |
+------------------+--------------------------------------------------+
| allocation_pools | {"start": "10.19.11.170", "end": "10.19.11.180"} |
| cidr | 10.19.11.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.19.11.1 |
| host_routes | |
| id | 14585957-9c0a-497d-acce-a50e7cb19bb4 |
| ip_version | 4 |
| name | |
| network_id | d57d10e5-ae54-4c5b-9793-de810c7c90c8 |
| tenant_id | 942a2647fc264c1eba700fcdefba9762 |
+------------------+--------------------------------------------------+
root@ControllerOS:~# quantum router-list
+--------------------------------------+-----------------+-----------------------+
| id | name | external_gateway_info |
+--------------------------------------+-----------------+-----------------------+
| dd081989-eeb5-421b-b793-ad04932225e4 | router_proj_one | null |
+--------------------------------------+-----------------+-----------------------+
root@ControllerOS:~# quantum router-gateway-set router_proj_one ext-net
Set gateway for router router_proj_one
root@ControllerOS:~#
ERROR FROM /var/log/quantum/l3-agent.log
--------------------------------------------------------------------------
2013-05-16 14:57:43 WARNING [quantum.openstack.common.loopingcall] task run outlasted interval by 12.887548 sec
2013-05-16 14:58:43 ERROR [quantum.agent.l3_agent] Failed synchronizing routers
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 639, in _sync_routers_task
self._process_routers(routers, all_routers=True)
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 622, in _process_routers
self.process_router(ri)
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 320, in process_router
self.external_gateway_added(ri, ex_gw_port, internal_cidrs)
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 411, in external_gateway_added
prefix=EXTERNAL_DEV_PREFIX)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line 177, in plug
ns_dev.link.set_address(mac_address)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 173, in set_address
self._as_root('set', self.name, 'address', mac_address)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 160, in _as_root
kwargs.get('use_root_namespace', False))
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 47, in _as_root
namespace)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 58, in _execute
root_helper=root_helper)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py", line 61, in execute
raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'link', 'set', 'qg-6d99c462-40', 'address', 'fa:16:3e:39:a4:d8']
Exit code: 1
Stdout: ''
Stderr: 'Cannot find device "qg-6d99c462-40"\n'
--------------------------------------------------------------------------------
From Network Node , the ovs-vsctl show command is showing the interface is added to the external bridge which is also
having the interface having external internet access.
root@networknode:/var/log/quantum# ovs-vsctl show
e47ecc7e-0bc6-44ab-8471-74cef3ca023d
Bridge br-ex
Port "eth1"
Interface "eth1"
Port "qg-6d99c462-40"
Interface "qg-6d99c462-40"
type: internal
Port br-ex
Interface br-ex
type: internal
-------------------------------------------------------------------------------------------------------
Port information from HORIZON:
Port Overview
Port
Name
None
ID
6d99c462-40b3-4d5e-bb99-a5f995d1acd9
Network ID
d57d10e5-ae54-4c5b-9793-de810c7c90c8
Project ID
-
Fixed IP
IP address: 10.19.11.171, Subnet ID 14585957-9c0a-497d-acce-a50e7cb19bb4
Mac Address
fa:16:3e:39:a4:d8
Status
DOWN
Admin State
UP
Attached Device
Device Owner: network:router_gateway
Device ID: dd081989-eeb5-421b-b793-ad04932225e4
------------------------------------------------------------------------------------------------------------
What could be problem with l3-agent. I have tried this multiple time but it is giving the same error.
Due to this, i am not able to access the VM instance by using floating-IP .
Thanks for looking into this issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1180734/+subscriptions