Image sharing¶
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:
The member status controls whether image appears in the consumer’s image list. If the image member status is
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.The member status can be used to filter the consumer’s image list.
The member status lets the producer know whether the consumer has seen and acted on the shared image. If the status is
accepted
orrejected
, the consumer has definitely seen the shared image. If the status ispending
, 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.
Image producers add members to images, or remove members from images, but they may not modify the member status of an image member.
Image producers and consumers view the status of image members. When listing image members, the producers see all the image members, and the consumers see only themselves.
Image consumers change their own member status, but they may not add or remove themselves as an image member.
Image consumers can boot from any image shared by the image producer, regardless of the member status, as long as the consumer knows the image ID.