vpnaas service doesn't work caused by a refactoring commit
Bug #1430100 reported by
Hua Zhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Hua Zhang |
Bug Description
The refactoring commit 56fd82 moves router_info and NAT rules staffs from l3-agent into vpn device driver, which cause two problems:
1, The router is maintained in the driver, and not the VPN service. The router instance should not be deleted.
2, NAT rules has been moved from l3-agent into vpn device driver, but something in vpn device driver is still refering NAT rules related methods in l3-agent.
Changed in neutron: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-3 → 2015.1.0 |
To post a comment you must log in.
the error logs for above 2) is below:
2015-03-10 09:12:20.572 DEBUG oslo_concurrenc y.lockutils [req-6f5df6b9- 2ef0-4aae- b7a3-f246a23564 2f TestNetworkVPNa aS-51380903 TestNetworkVPNa aS-1875418556] Lock "vpn-agent" released by "sync" :: held 0.169s inner /usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/lockutils. py:442 rpc.dispatcher [req-6f5df6b9- 2ef0-4aae- b7a3-f246a23564 2f TestNetworkVPNa aS-51380903 TestNetworkVPNa aS-1875418556] Exception during message handling: 'VPNService' object has no attribute 'add_nat_rule' rpc.dispatcher Traceback (most recent call last): rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ rpc/dispatcher. py", line 142, in _dispatch_and_reply rpc.dispatcher executor_callback)) rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ rpc/dispatcher. py", line 186, in _dispatch rpc.dispatcher executor_callback) rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ rpc/dispatcher. py", line 130, in _do_dispatch rpc.dispatcher result = func(ctxt, **new_args) rpc.dispatcher File "/bak/openstack /neutron- vpnaas/ neutron_ vpnaas/ services/ vpn/device_ drivers/ ipsec.py" , line 629, in vpnservice_updated rpc.dispatcher self.sync(context, [router] if router else []) rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/lockutils. py", line 431, in inner rpc.dispatcher return f(*args, **kwargs) rpc.dispatcher File "/bak/openstack /neutron- vpnaas/ neutron_ vpnaas/ services/ vpn/device_ drivers/ ipsec.py" , line 772, in sync rpc.dispatcher self._sync_ vpn_processes( vpnservices, sync_router_ids) rpc.dispatcher File "/bak/openstack /neutron- vpnaas/ neutron_ vpnaas/ services/ vpn/device_ drivers/ ipsec.py" , line 787, in _sync_vpn_processes rpc.dispatcher self._update_ nat(vpnservice, self.agent. add_nat_ rule) rpc.dispatcher AttributeError: 'VPNService' object has no attribute 'add_nat_rule' rpc.dispatcher agent.l3. agent [-] Report state task started _report_state /bak/openstack/ neutron/ neutron/ agent/l3/ agent.py: 1013 _drivers. amqp [-] UNIQUE_ID is d76650bab95b4ea db38a9b4398f9b7 12.
2015-03-10 09:12:20.572 ERROR oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:20.572 16734 TRACE oslo_messaging.
2015-03-10 09:12:24.985 16734 DEBUG neutron.
2015-03-10 09:12:24.987 16734 DEBUG oslo_messaging.