Image producers and consumers are both OpenStack users, or projects. Image producers create and share images with image consumers, allowing the consumers to use the shared image when booting a server. The producer shares an image with the consumer by making the consumer a member of that image. The consumer then accepts or rejects the image by changing the image member status. After it is accepted, the image appears in the consumer’s image list. As long as the consumer is a member of the image, the consumer can use the image, regardless of the image member status, if the consumer knows the image ID.
Note
In the OpenStack Image API, the image member status serves three purposes:
accepted
, the image
appears in the consumer’s image list. Otherwise, the image does not
appear in the image list. The image may still be used as long as
the consumer knows the image ID.accepted
or
rejected
, the consumer has definitely seen the shared image. If
the status is pending
, the consumer may not be aware that an
image was shared.Image producers and consumers have different abilities and responsibilities regarding image sharing, which the following list shows.
The following procedure is a workflow for image sharing after image creation.
Communications between the image producer and the consumer, such as those described in this example, must be arranged independently of the OpenStack Image API. The consumer and producer can send notifications by using email, phone, Twitter, or other channels.
Create image member
API operation.accepted
, by using the Update image member
API operation.rejected
. If the consumer wants to hide the image, but is open to
the possibility of being reminded by the producer that the image is
available, the consumer uses the OpenStack Image API to change the image
member status back to pending
, by using the Update image member
API operation.Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.