Revision history [back]

Glance client allows you to create public and private images. The default value is 'private', though. Some examples below.

(openstack)phantom ~ $ glance image-create --is-public True --name test                                                                                                                                             
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2013-11-26T09:17:00                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | None                                 |
| id               | 08c19538-c003-47d6-843f-80c1407afc79 |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test                                 |
| owner            | c15e15442ddb4387a8c0f0ca2f46a1be     |
| protected        | False                                |
| size             | 0                                    |
| status           | queued                               |
| updated_at       | 2013-11-26T09:17:00                  |
+------------------+--------------------------------------+
(openstack)phantom ~ $ glance image-create --is-public False --name test2                                                                                                                                           
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2013-11-26T09:17:09                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | None                                 |
| id               | 1d97a170-7b6b-4ee3-a7ed-6d47fca48c08 |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test2                                |
| owner            | c15e15442ddb4387a8c0f0ca2f46a1be     |
| protected        | False                                |
| size             | 0                                    |
| status           | queued                               |
| updated_at       | 2013-11-26T09:17:09                  |
+------------------+--------------------------------------+
(openstack)phantom ~ $ glance image-create --name test3                                                                                                                                                             
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2013-11-26T09:17:29                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | None                                 |
| id               | 4be89626-3332-4d2d-bdb8-1fefd9dcdfb0 |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test3                                |
| owner            | c15e15442ddb4387a8c0f0ca2f46a1be     |
| protected        | False                                |
| size             | 0                                    |
| status           | queued                               |
| updated_at       | 2013-11-26T09:17:29                  |
+------------------+--------------------------------------+

There's no global parameter that would make all images public. You have to create the image and then update it. You can update images through the CLI and/or the dashboard.

However, Glance client allows you to create public and private images. The default value is 'private', though. Some examples below.

(openstack)phantom ~ $ glance image-create --is-public True --name test                                                                                                                                             
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2013-11-26T09:17:00                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | None                                 |
| id               | 08c19538-c003-47d6-843f-80c1407afc79 |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test                                 |
| owner            | c15e15442ddb4387a8c0f0ca2f46a1be     |
| protected        | False                                |
| size             | 0                                    |
| status           | queued                               |
| updated_at       | 2013-11-26T09:17:00                  |
+------------------+--------------------------------------+
(openstack)phantom ~ $ glance image-create --is-public False --name test2                                                                                                                                           
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2013-11-26T09:17:09                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | None                                 |
| id               | 1d97a170-7b6b-4ee3-a7ed-6d47fca48c08 |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test2                                |
| owner            | c15e15442ddb4387a8c0f0ca2f46a1be     |
| protected        | False                                |
| size             | 0                                    |
| status           | queued                               |
| updated_at       | 2013-11-26T09:17:09                  |
+------------------+--------------------------------------+
(openstack)phantom ~ $ glance image-create --name test3                                                                                                                                                             
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2013-11-26T09:17:29                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | None                                 |
| id               | 4be89626-3332-4d2d-bdb8-1fefd9dcdfb0 |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test3                                |
| owner            | c15e15442ddb4387a8c0f0ca2f46a1be     |
| protected        | False                                |
| size             | 0                                    |
| status           | queued                               |
| updated_at       | 2013-11-26T09:17:29                  |
+------------------+--------------------------------------+