Feature #1107

Addition of a --meta option to snf-admin image

Added by Vangelis Koukis about 12 years ago. Updated almost 12 years ago.

Status:Closed Start date:09/14/2011
Priority:High Due date:
Assignee:Giorgos Verigakis % Done:

0%

Category:Admin Spent time: -
Target version:v0.7

Description

To ease image deployment, please consider adding a --meta option to snf-image register, allowing the user to pass an initial set of metadata along with the image registration command.

The snf-admin image meta command may still be used to manipulate preexisting image metadata entries.

Please also investigate showing only images for which state!=DELETED in snf-admin image list, and having a -a parameter to show all images, like it happens for snf-admin server list.

Associated revisions

Revision 79c33f4e
Added by Giorgos Verigakis about 12 years ago

Do not show deleted objects by default

Use -a to also show deleted objects.

Refs #1107

Revision 330c7d80
Added by Giorgos Verigakis about 12 years ago

Add --meta in image register

Allows to add metadata during image registration.

Refs #1107

History

#1 Updated by Vangelis Koukis about 12 years ago

Updated ticket description.

#2 Updated by Vangelis Koukis about 12 years ago

  • Target version changed from v0.6.2 to 67

#3 Updated by Giorgos Verigakis about 12 years ago

Is there anything else needed for this ticket to close?

#4 Updated by Vangelis Koukis almost 12 years ago

  • Target version changed from 67 to v0.7

#5 Updated by Vangelis Koukis almost 12 years ago

  • Priority changed from Medium to High
vkoukis@dev67:~/synnefo/snf-tools [master]$ ./snf-admin image register "Debian Base" debian_base-6.0-4 extdump --public --meta=OS=centos --meta=kernel=2.6.32 --meta=size=601 --meta=description="Debian Base" --meta=GUI="No GUI" 
Traceback (most recent call last):
  File "./snf-admin", line 625, in <module>
    main()
  File "./snf-admin", line 620, in main
    cmd.execute()
  File "./snf-admin", line 123, in execute
    self.main(*self.args)
  File "./snf-admin", line 347, in main
    image.imagemetadata_set.create(meta_key=key, meta_value=val)
AttributeError: 'Image' object has no attribute 'imagemetadata_set'

#6 Updated by Vangelis Koukis almost 12 years ago

  • Status changed from Assigned to Closed

Fix merged into master, --meta works on image registration, closing ticket.

Also available in: Atom PDF