Hi, This is caused due to the fact that the _UnlockedLookupNetwork() config method returns None, instead of raising OpPrereqError if target network is not found. I will fix that and check if it breaks the code elsewhere.
Thanks, dimara * [email protected] <[email protected]> [2013-01-25 13:27:46 +0000]: > Status: New > Owner: ---- > Labels: Type-Defect Priority-Medium > > New issue 352 by [email protected]: Adding tags to a network raises > exceptions > http://code.google.com/p/ganeti/issues/detail?id=352 > > What steps will reproduce the problem? > 1. Run gnt-network add-tags sometags yournetworkname > > What is the expected output? What do you see instead? > That it does add a tag to the network. Instead, an exception is thrown: > > 2013-01-25 13:24:04,643: ganeti-masterd pid=4188/Jq2/Job47299 > jqueue:1131 ERROR Op 1/1: Caught exception in TAGS_SET > Traceback (most recent call last): > File "/usr/lib/python2.6/dist-packages/ganeti/jqueue.py", line > 1098, in _ExecOpCodeUnlocked > timeout=timeout) > File "/usr/lib/python2.6/dist-packages/ganeti/jqueue.py", line > 1409, in _WrapExecOpCode > return execop_fn(op, *args, **kwargs) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 531, > in ExecOpCode > calc_timeout) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 482, > in _LockAndExecLU > result = self._LockAndExecLU(lu, level + 1, calc_timeout) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 482, > in _LockAndExecLU > result = self._LockAndExecLU(lu, level + 1, calc_timeout) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 482, > in _LockAndExecLU > result = self._LockAndExecLU(lu, level + 1, calc_timeout) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 482, > in _LockAndExecLU > result = self._LockAndExecLU(lu, level + 1, calc_timeout) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 482, > in _LockAndExecLU > result = self._LockAndExecLU(lu, level + 1, calc_timeout) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 473, > in _LockAndExecLU > result = self._LockAndExecLU(lu, level + 1, calc_timeout) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 421, > in _LockAndExecLU > result = self._ExecLU(lu) > File "/usr/lib/python2.6/dist-packages/ganeti/mcpu.py", line 388, > in _ExecLU > result = _ProcessResult(submit_mj_fn, lu.op, lu.Exec(self.Log)) > File "/usr/lib/python2.6/dist-packages/ganeti/cmdlib.py", line > 15795, in Exec > self.target.AddTag(tag) > AttributeError: 'NoneType' object has no attribute 'AddTag' >
signature.asc
Description: Digital signature
