[Openstack-operators] [glance] share image with domain
Brian Rosmaita
rosmaita.fossdev at gmail.com
Wed Aug 22 15:05:09 UTC 2018
On Tue, Jul 10, 2018 at 8:04 AM Christian Berendt
<berendt at betacloud-solutions.de> wrote:
> It is possible to add a domain as a member, however this is not taken in account. It should be mentioned that you can also add non-existing project ids as a member.
Yes, you can add any string as an image member. Back when image
sharing was implemented, it was thought that making an extra call to
keystone to verify the member_id would be too expensive because people
would be sharing so many images all the time, but AFAIK, that hasn't
turned out to be the case. So it may be worth revisiting this issue.
> For me it looks like it is not possible to share a image with visibility “shared” with a domain.
That is correct, the items in the member-list are treated as project
IDs. (Actually, that's not entirely true, but will be completely true
very early in the Stein development cycle.[0])
> Are there known workarounds or scripts for that use case?
I'm not aware of any. You could write a script that took a domain ID,
got the list of projects in that domain, and shared the image with all
those projects, but then you'd have a synchronization problem when
projects were added to/removed from the domain, so that's probably not
a good idea.
If this is an important use case, please consider proposing a Glance
spec [1] or proposing it as a topic for the upcoming PTG [2].
cheers,
brian
[0] https://specs.openstack.org/openstack/glance-specs/specs/rocky/implemented/glance/spec-lite-deprecate-owner_is_tenant.html
[1] http://git.openstack.org/cgit/openstack/glance-specs
[2] https://etherpad.openstack.org/p/stein-ptg-glance-planning
> Christian.
>
> --
> Christian Berendt
> Chief Executive Officer (CEO)
>
> Mail: berendt at betacloud-solutions.de
> Web: https://www.betacloud-solutions.de
>
> Betacloud Solutions GmbH
> Teckstrasse 62 / 70190 Stuttgart / Deutschland
>
> Geschäftsführer: Christian Berendt
> Unternehmenssitz: Stuttgart
> Amtsgericht: Stuttgart, HRB 756139
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
More information about the OpenStack-operators
mailing list