Ask Your Question
0

How to unset/remove image proprety?

asked 2015-10-07 05:41:36 -0600

Hi,

with the command

glance image-update --property my_prop=1 <image_id>

I can store the value of my custom property to my image. But, how can I unset/remove definitively this property ? I try with:

glance image-update --property my_prop= <image_id>

but set the value of property to None.

Thanks,

Salvo

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2015-10-09 04:59:33 -0600

updated 2015-10-09 04:59:53 -0600

I resolved using "nova image-meta" command.

   usage: nova image-meta <image> <action> <key=value> [<key=value> ...]

   Set or Delete metadata on an image.

   Positional arguments:
     <image>      Name or ID of image
     <action>     Actions: 'set' or 'delete'
     <key=value>  Metadata to add/update or delete (only key is necessary on
                  delete)
edit flag offensive delete link more
0

answered 2015-10-07 09:51:02 -0600

Ciao Salvo,

I think you should use --purge-props flag. See here

edit flag offensive delete link more

Comments

I know, but I don't like the phrase "delete all image properties not explicitly set in the update request". :)

salvorapi gravatar imagesalvorapi ( 2015-10-09 04:57:35 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-10-07 05:41:36 -0600

Seen: 1,418 times

Last updated: Oct 09 '15