yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #22579
[Bug 1292102] Re: AttributeError: 'NoneType' object has no attribute 'obj' (driver.obj.release_segment(session, segment))
** Also affects: neutron/icehouse
Importance: Undecided
Status: New
** Changed in: neutron/icehouse
Status: New => Fix Committed
** Changed in: neutron/icehouse
Milestone: None => 2014.1.3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1292102
Title:
AttributeError: 'NoneType' object has no attribute 'obj'
(driver.obj.release_segment(session, segment))
Status in OpenStack Neutron (virtual network service):
Fix Released
Status in neutron icehouse series:
Fix Committed
Status in “neutron” package in Ubuntu:
Fix Released
Status in “neutron” source package in Trusty:
Triaged
Status in “neutron” source package in Utopic:
Fix Released
Bug description:
When trying to delete a network, I hit a traceback.
ubuntu@neutron01:~$ neutron port-list
ubuntu@neutron01:~$ neutron net-list
+--------------------------------------+---------+---------+
| id | name | subnets |
+--------------------------------------+---------+---------+
| 822d2b2e-481f-4838-9fe5-459be7b10193 | int_net | |
| ac498310-833b-42f2-9009-049cac145c71 | ext_net | |
+--------------------------------------+---------+---------+
ubuntu@neutron01:~$ neutron --debug net-delete int_net
Request Failed: internal server error while processing your request.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 527, in run_subcommand
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 80, in run_command
return cmd.run(known_args)
File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 510, in run
obj_deleter(_id)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 112, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 354, in delete_network
return self.delete(self.network_path % (network))
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1233, in delete
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1222, in retry_request
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1165, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1135, in _handle_fault_response
exception_handler_v20(status_code, des_error_body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 85, in exception_handler_v20
message=error_dict)
NeutronClientException: Request Failed: internal server error while processing your request.
ubuntu@neutron01:~$
/var/log/neutron/server.log
====
2014-03-13 12:30:09.930 16624 ERROR neutron.api.v2.resource [req-cc63906f-1e13-4d22-becf-86979d80399f None] delete failed
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 87, in resource
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource result = method(request=request, **args)
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 438, in delete
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource obj_deleter(request.context, id, **kwargs)
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 479, in delete_network
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource self.type_manager.release_segment(session, segment)
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 104, in release_segment
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource driver.obj.release_segment(session, segment)
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'obj'
2014-03-13 12:30:09.930 16624 TRACE neutron.api.v2.resource
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: neutron-plugin-ml2 1:2014.1~b3-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
Uname: Linux 3.13.0-16-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
Date: Thu Mar 13 12:36:03 2014
PackageArchitecture: all
ProcEnviron:
TERM=screen.linux
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: neutron
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.neutron.plugins.ml2.ml2.conf.arista.ini: [deleted]
modified.conffile..etc.neutron.plugins.ml2.ml2.conf.brocade.ini: [deleted]
modified.conffile..etc.neutron.plugins.ml2.ml2.conf.cisco.ini: [deleted]
modified.conffile..etc.neutron.plugins.ml2.ml2.conf.ini: [deleted]
modified.conffile..etc.neutron.plugins.ml2.ml2.conf.mlnx.ini: [deleted]
modified.conffile..etc.neutron.plugins.ml2.ml2.conf.ncs.ini: [deleted]
modified.conffile..etc.neutron.plugins.ml2.ml2.conf.ofa.ini: [deleted]
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1292102/+subscriptions