[openstack-dev] [glance] about use shared image with each other
rosmaita.fossdev at gmail.com
Mon Nov 19 14:26:00 UTC 2018
On 11/19/18 7:58 AM, Rambo wrote:
> Recently, I want to use the shared image with each other.I find it
> isn't convenient that the producer notifies the consumer via email which
> the image has been shared and what its UUID is. In other words, why the
> image api v2 is no provision for producer-consumer communication?
The design goal for Image API v2 image sharing was to provide an
infrastructure for an "image marketplace" in an OpenStack cloud by (a)
making it easy for cloud end users to share images, and (b) making it
easy for end users not to be spammed by other end users taking advantage
of (a). When v2 image sharing was introduced in the Grizzly release, we
did not want to dictate how producer-consumer communication would work
(because we had no idea how it would develop), so we left it up to
operators and end users to figure this out.
The advantage of email communication is that client side message
filtering is available for whatever client a particular cloud end-user
employs, and presumably that end-user knows how to manipulate the
filters without learning some new scheme (or, if the end-user doesn't
know, learning how to filter messages will apply beyond just image
sharing, which is a plus).
Also, email communication is just one way to handle producer-consumer
communication. Some operators have adjusted their web interfaces so
that when an end-user looks at the list of images available, a
notification pops up if the end-user has any images that have been
shared with them and are still in "pending" status. There are various
other creative things you can do using the normal API calls with regular
In brief, we figured that if an image marketplace evolved in a
particular cloud, producers and consumers would forge their own
relationships in whatever way made the most sense for their particular
use cases. So we left producer-consumer communication out-of-band.
> To make it is more convenient, if we can add a task to change the
> member_status from "pending" to "accepted" when we share the image with
> each other. It is similar to the resize_confirm in Nova, we can control
> the time interval in config.
You could do this, but that would defeat the entire purpose of the
member statuses implementation, and hence I do not recommend it. See
OSSN-0005  for more about this issue.
Additionally, since the Ocata release, "community" images have been
available. These do not have to be accepted by an end user (but they
also don't show up in the default image-list response). Who can
"communitize" an image is governed by policy.
See  for a discussion of the various types of image sharing currently
available in the Image API v2. The Image Service API v2 api-ref 
contains a brief discussion of image visibility and image sharing that
may also be useful. Finally, the Glance Ocata release notes  have an
extensive discussion of image visibility.
> Can you tell me more about this?Thank you very much!
The original design page on the wiki  has a list of 14 use cases we
wanted to address; looking through those will give you a better idea of
why we made the design choices we did.
Hope this helps!
> Best Regards
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
More information about the openstack-discuss