*** This bug is a duplicate of bug 1528435 ***
https://bugs.launchpad.net/bugs/1528435
** This bug has been marked a duplicate of bug 1528435
The gate test of VPNaaS is failing with AttributeError
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1528805
Title:
create_ipsec_site_connection call failed because of code inconsistency
Status in neutron:
Fix Committed
Bug description:
EC2-API gating checks vpn functionality and it is broken two days due to
vpn-ass.
gating enables vpnass plugin and neutron
gating fails on call - "neutron.create_ipsec_site_connection":
REQ: curl -g -i -X POST http://127.0.0.1:9696/v2.0/vpn/ipsec-site-
connections.json -H "User-Agent: python-neutronclient" -H "Content-
Type: application/json" -H "Accept: application/json" -H "X-Auth-
Token: {SHA1}88227c79fef8266afa89bd559e6f92bb99dd17df" -d
'{"ipsec_site_connection": {"ikepolicy_id": "9f00451d-
aaa8-4465-97f1-f45b6890771e", "peer_cidrs": ["172.16.25.0/24"], "mtu":
1427, "ipsecpolicy_id": "31b17d19-a898-472b-8944-fa34321b67e5",
"vpnservice_id": "7586b8d4-1c1e-49dd-91cc-e1055138ba6d", "psk":
"p.Hu0SlBXoSd8sF1WV.QDSy32sVCjKON", "peer_address": "198.51.100.77",
"peer_id": "198.51.100.77", "initiator": "response-only", "name":
"vpn-360307d8/subnet-031705ee"}}' _http_log_request
/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
it takes exception from neutron and netron logs are:
2015-12-22 21:28:38.620 DEBUG neutron.api.v2.base
[req-86bbd8b1-af64-4d82-86d4-15daa40a2a8f user-29edecd6 project-3a1e0ba2]
Request body: {u'ipsec_site_connection': {u'psk':
u'p.Hu0SlBXoSd8sF1WV.QDSy32sVCjKON', u'peer_cidrs': [u'172.16.25.0/24'],
u'vpnservice_id': u'7586b8d4-1c1e-49dd-91cc-e1055138ba6d', u'initiator':
u'response-only', u'mtu': 1427, u'ikepolicy_id':
u'9f00451d-aaa8-4465-97f1-f45b6890771e', u'ipsecpolicy_id':
u'31b17d19-a898-472b-8944-fa34321b67e5', u'peer_address': u'198.51.100.77',
u'peer_id': u'198.51.100.77', u'name': u'vpn-360307d8/subnet-031705ee'}}
prepare_request_body /opt/stack/new/neutron/neutron/api/v2/base.py:645
2015-12-22 21:28:38.620 ERROR neutron.api.v2.resource
[req-86bbd8b1-af64-4d82-86d4-15daa40a2a8f user-29edecd6 project-3a1e0ba2]
create failed
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource Traceback (most
recent call last):
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource File
"/opt/stack/new/neutron/neutron/api/v2/resource.py", line 83, in resource
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource result =
method(request=request, **args)
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource File
"/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 147, in wrapper
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource ectxt.value =
e.inner_exc
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource File
"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 204, in
__exit__
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource
six.reraise(self.type_, self.value, self.tb)
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource File
"/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 137, in wrapper
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource return
f(*args, **kwargs)
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource File
"/opt/stack/new/neutron/neutron/api/v2/base.py", line 414, in create
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource
allow_bulk=self._allow_bulk)
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource File
"/opt/stack/new/neutron/neutron/api/v2/base.py", line 680, in
prepare_request_body
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource
attributes.convert_value(attr_info, res_dict, webob.exc.HTTPBadRequest)
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource File
"/opt/stack/new/neutron/neutron/api/v2/attributes.py", line 919, in
convert_value
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource res =
validators[rule](res_dict[attr], attr_vals['validate'][rule])
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource File
"/opt/stack/new/neutron-vpnaas/neutron_vpnaas/extensions/vpnaas.py", line 167,
in _validate_subnet_list_or_none
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource
attr._validate_subnet_list(data, key_specs)
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource AttributeError:
'module' object has no attribute '_validate_subnet_list'
2015-12-22 21:28:38.620 16707 ERROR neutron.api.v2.resource
2015-12-22 21:28:38.625 INFO neutron.wsgi
[req-86bbd8b1-af64-4d82-86d4-15daa40a2a8f user-29edecd6 project-3a1e0ba2]
127.0.0.1 - - [22/Dec/2015 21:28:38] "POST
/v2.0/vpn/ipsec-site-connections.json HTTP/1.1" 500 383 0.092068
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1528805/+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