yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #34762
[Bug 1468588] [NEW] fail to create ha router due to port-security
Public bug reported:
when create a ha router, it complains an internal error.
examine the q-svc log, it reads:
2015-06-25 10:03:27.092 ERROR neutron.api.v2.resource [req-2a48e4d2-52a8-421e-a99b-c3cb305fc8cc admin demo] create failed
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource Traceback (most recent call last):
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource result = method(request=request, **args)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 462, in create
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource obj = obj_creator(request.context, **kwargs)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 374, in create_router
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource self.delete_router(context, router_dict['id'])
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 370, in create_router
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource self._create_ha_interfaces(context, router_db, ha_network)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 326, in _create_ha_interfaces
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource l3_port_check=False)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 320, in _create_ha_interfaces
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource router.tenant_id)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 301, in add_ha_port
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource 'name': constants.HA_PORT_NAME % tenant_id}})
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 998, in create_port
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource result, mech_context = self._create_port_db(context, port)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 980, in _create_port_db
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource network = self.get_network(context, result['network_id'])
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 665, in get_network
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource result = super(Ml2Plugin, self).get_network(context, id, None)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 285, in get_network
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource return self._make_network_dict(network, fields)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/db_base_plugin_common.py", line 238, in _make_network_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource attributes.NETWORKS, res, network)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/common_db_mixin.py", line 178, in _apply_dict_extend_functions
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource func(*args)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 484, in _ml2_md_extend_network_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource self.extension_manager.extend_network_dict(session, netdb, result)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 805, in extend_network_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource driver.obj.extend_network_dict(session, base_model, result)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/extensions/port_security.py", line 60, in extend_network_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource self._extend_port_security_dict(result, db_data)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/extensions/port_security.py", line 67, in _extend_port_security_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource db_data['port_security'][psec.PORTSECURITY])
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource TypeError: 'NoneType' object has no attribute '__getitem__'
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource
** Affects: neutron
Importance: Undecided
Assignee: yong sheng gong (gongysh)
Status: New
** Changed in: neutron
Assignee: (unassigned) => yong sheng gong (gongysh)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1468588
Title:
fail to create ha router due to port-security
Status in OpenStack Neutron (virtual network service):
New
Bug description:
when create a ha router, it complains an internal error.
examine the q-svc log, it reads:
2015-06-25 10:03:27.092 ERROR neutron.api.v2.resource [req-2a48e4d2-52a8-421e-a99b-c3cb305fc8cc admin demo] create failed
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource Traceback (most recent call last):
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource result = method(request=request, **args)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 462, in create
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource obj = obj_creator(request.context, **kwargs)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 374, in create_router
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource self.delete_router(context, router_dict['id'])
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 370, in create_router
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource self._create_ha_interfaces(context, router_db, ha_network)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 326, in _create_ha_interfaces
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource l3_port_check=False)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 320, in _create_ha_interfaces
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource router.tenant_id)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 301, in add_ha_port
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource 'name': constants.HA_PORT_NAME % tenant_id}})
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 998, in create_port
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource result, mech_context = self._create_port_db(context, port)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 980, in _create_port_db
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource network = self.get_network(context, result['network_id'])
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 665, in get_network
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource result = super(Ml2Plugin, self).get_network(context, id, None)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 285, in get_network
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource return self._make_network_dict(network, fields)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/db_base_plugin_common.py", line 238, in _make_network_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource attributes.NETWORKS, res, network)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/common_db_mixin.py", line 178, in _apply_dict_extend_functions
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource func(*args)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 484, in _ml2_md_extend_network_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource self.extension_manager.extend_network_dict(session, netdb, result)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 805, in extend_network_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource driver.obj.extend_network_dict(session, base_model, result)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/extensions/port_security.py", line 60, in extend_network_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource self._extend_port_security_dict(result, db_data)
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/plugins/ml2/extensions/port_security.py", line 67, in _extend_port_security_dict
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource db_data['port_security'][psec.PORTSECURITY])
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource TypeError: 'NoneType' object has no attribute '__getitem__'
2015-06-25 10:03:27.092 14237 ERROR neutron.api.v2.resource
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1468588/+subscriptions
Follow ups
References