Ask Your Question

Revision history [back]

I've only fouded this http://blog.csdn.net/quqi99/article/details/9734251 It describes how to configure ipsec. After that I've installed package openstack-neutron-vpn-agent

[root@tn1 share]# cat /etc/neutron/vpn_agent.ini 
[DEFAULT]
# VPN-Agent configuration file
# Note vpn-agent inherits l3-agent, so you can use configs on l3-agent also
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
[vpnagent]
#vpn device drivers which vpn agent will use
#If we want to use multiple drivers,  we need to define this option multiple times.
#vpn_device_driver=neutron.services.vpn.device_drivers.ipsec.OpenSwanDriver
#vpn_device_driver=another_driver

[ipsec]
#Status check interval
#ipsec_status_check_interval=60

Service started, but I got error in /var/log/neutron/vpn-agent.log:

2013-10-24 14:12:12.133 29314 ERROR neutron.agent.l3_agent [-] Failed synchronizing routers
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent Traceback (most recent call last):
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 753, in _sync_routers_task
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     self._process_routers(routers, all_routers=True)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/agent.py", line 143, in _process_routers
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     device.sync(self.context, routers)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/openstack/common/lockutils.py", line 247, in inner
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     retval = f(*args, **kwargs)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/device_drivers/ipsec.py", line 652, in sync
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     context, self.host)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/device_drivers/ipsec.py", line 453, in get_vpn_services_on_host
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     topic=self.topic)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/proxy.py", line 130, in call
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     exc.info, real_topic, msg.get('method'))
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent Timeout: Timeout while waiting on RPC response - topic: "ipsec_driver", RPC method: "get_vpn_services_on_host" info: "<unknown>"
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent

I've only fouded this http://blog.csdn.net/quqi99/article/details/9734251 It describes how to configure ipsec. After that I've installed package openstack-neutron-vpn-agent

[root@tn1 share]# cat /etc/neutron/vpn_agent.ini 
[DEFAULT]
# VPN-Agent configuration file
# Note vpn-agent inherits l3-agent, so you can use configs on l3-agent also
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
[vpnagent]
#vpn device drivers which vpn agent will use
#If we want to use multiple drivers,  we need to define this option multiple times.
#vpn_device_driver=neutron.services.vpn.device_drivers.ipsec.OpenSwanDriver
#vpn_device_driver=another_driver

[ipsec]
#Status check interval
#ipsec_status_check_interval=60

Service started, but I got error in /var/log/neutron/vpn-agent.log:

2013-10-24 14:12:12.133 29314 ERROR neutron.agent.l3_agent [-] Failed synchronizing routers
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent Traceback (most recent call last):
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 753, in _sync_routers_task
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     self._process_routers(routers, all_routers=True)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/agent.py", line 143, in _process_routers
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     device.sync(self.context, routers)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/openstack/common/lockutils.py", line 247, in inner
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     retval = f(*args, **kwargs)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/device_drivers/ipsec.py", line 652, in sync
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     context, self.host)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/device_drivers/ipsec.py", line 453, in get_vpn_services_on_host
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     topic=self.topic)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/proxy.py", line 130, in call
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     exc.info, real_topic, msg.get('method'))
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent Timeout: Timeout while waiting on RPC response - topic: "ipsec_driver", RPC method: "get_vpn_services_on_host" info: "<unknown>"
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent

I've only fouded found this http://blog.csdn.net/quqi99/article/details/9734251 It describes how to configure ipsec. After that I've installed package openstack-neutron-vpn-agent

[root@tn1 share]# cat /etc/neutron/vpn_agent.ini 
[DEFAULT]
# VPN-Agent configuration file
# Note vpn-agent inherits l3-agent, so you can use configs on l3-agent also
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
[vpnagent]
#vpn device drivers which vpn agent will use
#If we want to use multiple drivers,  we need to define this option multiple times.
#vpn_device_driver=neutron.services.vpn.device_drivers.ipsec.OpenSwanDriver
#vpn_device_driver=another_driver

[ipsec]
#Status check interval
#ipsec_status_check_interval=60

Service started, but I got error in /var/log/neutron/vpn-agent.log:

2013-10-24 14:12:12.133 29314 ERROR neutron.agent.l3_agent [-] Failed synchronizing routers
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent Traceback (most recent call last):
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 753, in _sync_routers_task
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     self._process_routers(routers, all_routers=True)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/agent.py", line 143, in _process_routers
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     device.sync(self.context, routers)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/openstack/common/lockutils.py", line 247, in inner
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     retval = f(*args, **kwargs)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/device_drivers/ipsec.py", line 652, in sync
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     context, self.host)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/services/vpn/device_drivers/ipsec.py", line 453, in get_vpn_services_on_host
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     topic=self.topic)
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/proxy.py", line 130, in call
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent     exc.info, real_topic, msg.get('method'))
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent Timeout: Timeout while waiting on RPC response - topic: "ipsec_driver", RPC method: "get_vpn_services_on_host" info: "<unknown>"
2013-10-24 14:12:12.133 29314 TRACE neutron.agent.l3_agent