Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying additional tenants for sharing OpenStack images. #4113

Closed
clstokes opened this issue Nov 4, 2016 · 7 comments · Fixed by #4283
Closed

Allow specifying additional tenants for sharing OpenStack images. #4113

clstokes opened this issue Nov 4, 2016 · 7 comments · Fixed by #4283

Comments

@clstokes
Copy link
Contributor

clstokes commented Nov 4, 2016

When building an OpenStack image using Packer, the resulting image is available only to the tenant (or project) that was specified in the builder. Additional tenant ids should be able to be set (optionally) to share the resulting image with multiple tenants. This is functionally equivalent to the ami_users option for the amazon-ebs builder.

@rickard-von-essen
Copy link
Collaborator

rickard-von-essen commented Nov 4, 2016

@varikin Do you know if this requires Glance support?

@varikin
Copy link

varikin commented Nov 6, 2016

@rickard-von-essen I would assume so, but I am haven't looked at that functionality. We are happy with just making images public to all projects (tenants).

@mwhooker
Copy link
Contributor

mwhooker commented Nov 7, 2016

looks like the API is here https://github.com/rackspace/gophercloud/blob/HEAD/openstack/imageservice/v2/members/requests.go

which is an api call against glance, so it would be required. It's been a few years since I've worked with openstack, so I'm not sure if glance is common to all infrastructures.

we'll have to update the library at a minimum. The version we're using has been deprecated, so it might be worth taking a look at the new version (https://github.com/gophercloud/gophercloud/) and seeing if it's drop-in replaceable.

@mwhooker mwhooker modified the milestones: v0.12.1, v0.12 Nov 7, 2016
@mwhooker
Copy link
Contributor

mwhooker commented Nov 7, 2016

@clstokes 0.12.0 will come out next week and we'll get this in immediately after in 0.12.1 before 1.0

@clstokes
Copy link
Contributor Author

clstokes commented Nov 8, 2016

Thanks Matt!

@rickard-von-essen
Copy link
Collaborator

@mwhooker Could you also look into throwing in a option for visibility, private or public. See
https://github.com/rackspace/gophercloud/blob/master/openstack/imageservice/v2/images/requests.go

@mwhooker
Copy link
Contributor

There's a PR for upgrading the library here, but it looks like some functionality will be lost #4211

@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants