Hi,

* Helga Velroyen <[email protected]> [2013-01-31 10:39:09 +0100]:

> Hi!
> 
> I just double-checked and see that I still get the same exception when
> trying to add tags. I am sorry for not finding out earlier. Can you please
> check what more needs to be done to actually fix the issue?
> 
> I tried with this:
> ~# gnt-network add --network=192.168.7.7/24 mynet
> ~# gnt-network add-tags mytag mynet
> Failure: command execution error:
> 'NoneType' object has no attribute 'AddTag'
> 

I just built a package from current master, installed it on a vanilla node,
initialized a cluster and issued those two commands. My output is:

# gnt-network add --network=192.168.7.7/24 mynet
# gnt-network add-tags mytag mynet
Failure: prerequisites not met for this operation:
error type: unknown_entity, error details:
Network 'mytag' not found

Which is the correct one because network named mytag does not exist. TagsLU
calls _UnlockedLookupNetwork() which raises OpPrereqError.

I suppose you intend to cause that error. Because the correct order is:

# gnt-network add-tags mynet mytag
# gnt-network list
Network Subnet         Gateway NetworkType MacPrefix GroupList Tags
mynet   192.168.7.7/24 None    None        None                mytag

Hope it helps,
dimara

> Thank you,
> Helga
> 
> 
> On Tue, Jan 29, 2013 at 9:40 AM, Dimitris Aragiorgis <[email protected]>wrote:
> 
> > Dimitris Aragiorgis (2):
> >       Force conflicts check in LUNetworkDisconnect
> >       If _UnlockedLookupNetwork() fails raise error
> >
> >  lib/client/gnt_network.py |    5 ++---
> >  lib/cmdlib.py             |   67
> > ++++++++++++++++++++++---------------------------------------------
> >  lib/config.py             |   30 +++++++++---------------------
> >  lib/opcodes.py            |    1 -
> >  4 files changed, 33 insertions(+), 70 deletions(-)
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ganeti-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> >

Attachment: signature.asc
Description: Digital signature

Reply via email to