Protecting images

Like other OpenStack objects, images and snapshots are susceptible to accidental deletion by users. By default, images are unprotected, meaning they can be deleted at any time by a user within a project. The following sections explain how an image can be protected to ensure its survival.

Protecting an image

Images can be protected using the openstack image set command with the --protected argument.

Getting ready

When protecting an image, ensure that you are authenticated as an administrator or are the owner of the image. You will need the following details, at a minimum:

  • Image name or ID

For our examples, the following will be used:

  • Image name: COOKBOOK_UBUNTU_IMAGE

How to do it…

With the OpenStack client installed on our system, we are ...

Get OpenStack Cloud Computing Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.