Image lifecycle management

Remove image from all projects

When uploading an image to OpenStack the image will be visible to the current project; they can be made public or shared with other projects afterwards. If you want to set the image not accessible from any project without deleting it you have to set its (project) owner to NULL. To do it:

- log in to the *glance* database;
- issue the following command:
  update images set owner=NULL where name=$IMAGE_NAME;

Now the command openstack image show $IMAGE_NAME shows that the image owner is None.

Rebuild an instance when image owner is None

Rebuild of an instance when the image owner is None is not possible with the dashboard but still allowed with the CLI, with this command:

openstack server rebuild --image $IMAGE_ID $SERVER_NAME