Ask Your Question
0

Disable sharing of images

asked 2013-11-10 23:09:31 -0500

sngirame gravatar image

How can i configure glance to disable sharing of images?

edit retag flag offensive close merge delete

Comments

any pointers would be helpful?

sngirame gravatar imagesngirame ( 2013-11-11 23:45:27 -0500 )edit

Can anyone at least give me some hints?

Scott Zhang gravatar imageScott Zhang ( 2015-02-25 19:36:40 -0500 )edit

Please clarify what are "shared images" and provide nova image-show IMAGE_ID for "shared" image. You can set visibility (public or not), in general, but don't know if this is what you ask about...

rozie gravatar imagerozie ( 2015-10-08 06:24:26 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-02-10 05:47:26 -0500

You can also tweak the Glance policy file. Look at publicize_image, communitize_image and the member actions.

edit flag offensive delete link more
0

answered 2017-02-10 05:36:33 -0500

2707974 gravatar image

You can change Image visibility with command

 glance image-update <image-id> --visibility private/public

from public to private

glance image-update d18b270c-daf8-4a20-8301-ef0cc5003268 --visibility private
+--------------------+--------------------------------------+
| Property           | Value                                |
+--------------------+--------------------------------------+
| checksum           | 15f4984113141c390d669c92be07b804     |
| container_format   | bare                                 |
| created_at         | 2016-10-12T09:41:36Z                 |
| disk_format        | vmdk                                 |
| hypervisor_type    | vmware                               |
| id                 | d18b270c-daf8-4a20-8301-ef0cc5003268 |
| min_disk           | 0                                    |
| min_ram            | 0                                    |
| name               | OpenSUSE_42.1                        |
| ostype             | Linux                                |
| owner              | 62dc1d159df94bf29c78a8d21fa3f64b     |
| protected          | False                                |
| size               | 1527644160                           |
| status             | active                               |
| tags               | []                                   |
| updated_at         | 2017-02-10T11:27:45Z                 |
| virtual_size       | None                                 |
| visibility         | private                              |
| vmware_adaptertype | lsiLogicsas                          |
| vmware_disktype    | sparse                               |
+--------------------+--------------------------------------+

or from private to public

glance image-update d18b270c-daf8-4a20-8301-ef0cc5003268 --visibility public

+--------------------+--------------------------------------+
| Property           | Value                                |
+--------------------+--------------------------------------+
| checksum           | 15f4984113141c390d669c92be07b804     |
| container_format   | bare                                 |
| created_at         | 2016-10-12T09:41:36Z                 |
| disk_format        | vmdk                                 |
| hypervisor_type    | vmware                               |
| id                 | d18b270c-daf8-4a20-8301-ef0cc5003268 |
| min_disk           | 0                                    |
| min_ram            | 0                                    |
| name               | OpenSUSE_42.1                        |
| ostype             | Linux                                |
| owner              | 62dc1d159df94bf29c78a8d21fa3f64b     |
| protected          | False                                |
| size               | 1527644160                           |
| status             | active                               |
| tags               | []                                   |
| updated_at         | 2017-02-10T11:27:25Z                 |
| virtual_size       | None                                 |
| visibility         | public                               |
| vmware_adaptertype | lsiLogicsas                          |
| vmware_disktype    | sparse                               |
+--------------------+--------------------------------------+

Public images are available for all aka shared

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-11-10 23:09:31 -0500

Seen: 118 times

Last updated: Feb 10 '17