[Openstack] requirements on a user to create an image in glance
Sashan Govender
sashang at gmail.com
Sun Feb 18 22:54:09 UTC 2018
If a user A who is part of project P creates an image then can user B who
is part of project P as well see it and use it?
On Sun, Feb 18, 2018 at 12:02 PM <remo at italy1.com> wrote:
> As a user you cannot make an image public only admin can.
>
> You can ask admin to make it public
> You can share it with your other projects
>
> dal mio iPhone X
>
> Il giorno 17 feb 2018, alle ore 00:49, Sashan Govender <sashang at gmail.com>
> ha scritto:
>
> Hi
>
> What requirements must an openstack user meet to be able to create images
> in glance. I can create an image as a user as shown below but when I try to
> list the images as the same user it is not shown.
>
> xsasgov at deimos:sles12.2 test-utils/cloud/cloud-tool master $ glance
> --os-user-domain-name Default --os-tenant-id
> 33b174b1f999445a9cc4090938f80704 --os-tenant-name lda --os-password
> rootroot --os-username xsasgov --os-auth-url
> http://192.168.122.186:5000/v3 image-create --name lda-image
> --disk-format qcow2 --container-format bare --file testimage.qcow2
>
> +------------------+--------------------------------------+
> | Property | Value |
> +------------------+--------------------------------------+
> | checksum | 11a0609ef8c758fafc722529fbbbc487 |
> | container_format | bare |
> | created_at | 2018-02-17T02:46:33.000000 |
> | deleted | False |
> | deleted_at | None |
> | disk_format | qcow2 |
> | id | 4d3a32b1-2050-4986-9b93-306571ccaa1f |
> | is_public | False |
> | min_disk | 0 |
> | min_ram | 0 |
> | name | lda-image |
> | owner | None |
> | protected | False |
> | size | 534773760 |
> | status | active |
> | updated_at | 2018-02-17T02:46:37.000000 |
> | virtual_size | None |
> +------------------+--------------------------------------+
> xsasgov at deimos:sles12.2 test-utils/cloud/cloud-tool master $ glance
> --os-user-domain-name Default --os-tenant-id
> 33b174b1f999445a9cc4090938f80704 --os-tenant-name lda --os-password
> rootroot --os-username xsasgov --os-project-name lda --os-auth-url
> http://192.168.122.186:5000/v3 image-list
> +----+------+-------------+------------------+------+--------+
> | ID | Name | Disk Format | Container Format | Size | Status |
> +----+------+-------------+------------------+------+--------+
> +----+------+-------------+------------------+------+--------+
>
>
> However the image is there. If I login to the openstack server and use the
> openstack admin account to list the images then it is appears. So I'm
> wondering what I've missed when setting up the non-admin user?
>
> Thanks
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180218/ca90b2ce/attachment.html>
More information about the Openstack
mailing list