Public bug reported:
in my unit test, create port always happen error in n1kv, my unit test in neutron/tests/unit/test_db_plugin.py is: def test_prevent_used_dhcp_port_deletion(self): with self.network() as network: data = {'port': {'network_id': network['network']['id'], 'tenant_id': 'tenant_id', 'device_owner': constants.DEVICE_OWNER_DHCP}} create_req = self.new_create_request('ports', data) res = self.deserialize(self.fmt, create_req.get_response(self.api)) del_req = self.new_delete_request('ports', res['port']['id']) delete_res = del_req.get_response(self.api) self.assertEqual(delete_res.status_int, webob.exc.HTTPNoContent.code) the error log is: Traceback (most recent call last): File "neutron/api/v2/resource.py", line 87, in resource result = method(request=request, **args) File "neutron/api/v2/base.py", line 419, in create obj = obj_creator(request.context, **kwargs) File "neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py", line 1188, in create_port p_profile = self._get_policy_profile_by_name(p_profile_name) File "neutron/plugins/cisco/db/n1kv_db_v2.py", line 1530, in _get_policy_profile_by_name filter_by(name=name).one()) File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 2323, in one raise orm_exc.NoResultFound("No row was found for one()") NoResultFound: No row was found for one() ** Affects: neutron Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1294554 Title: Create port ERROR in n1kv of cissco plugin Status in OpenStack Neutron (virtual network service): New Bug description: in my unit test, create port always happen error in n1kv, my unit test in neutron/tests/unit/test_db_plugin.py is: def test_prevent_used_dhcp_port_deletion(self): with self.network() as network: data = {'port': {'network_id': network['network']['id'], 'tenant_id': 'tenant_id', 'device_owner': constants.DEVICE_OWNER_DHCP}} create_req = self.new_create_request('ports', data) res = self.deserialize(self.fmt, create_req.get_response(self.api)) del_req = self.new_delete_request('ports', res['port']['id']) delete_res = del_req.get_response(self.api) self.assertEqual(delete_res.status_int, webob.exc.HTTPNoContent.code) the error log is: Traceback (most recent call last): File "neutron/api/v2/resource.py", line 87, in resource result = method(request=request, **args) File "neutron/api/v2/base.py", line 419, in create obj = obj_creator(request.context, **kwargs) File "neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py", line 1188, in create_port p_profile = self._get_policy_profile_by_name(p_profile_name) File "neutron/plugins/cisco/db/n1kv_db_v2.py", line 1530, in _get_policy_profile_by_name filter_by(name=name).one()) File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 2323, in one raise orm_exc.NoResultFound("No row was found for one()") NoResultFound: No row was found for one() To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1294554/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp