Page MenuHomePhabricator

Cloud VPS: Default image is not allocated automatically
Closed, InvalidPublic

Description

I don't know if this is working as expected or not but the documentation mentions using image properties in Glance to specify a default image.

https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/VM_images#How_To_Deploy

$ openstack image show 7c6371d1-8411-48c7-bf73-2ef6d6ff2a15
+------------------+------------------------------------------------------+
| Field            | Value                                                |
+------------------+------------------------------------------------------+
| checksum         | 101ff716e8cb8b6a5ae0ed2618e632d8                     |
| container_format | ovf                                                  |
| created_at       | 2018-11-22T06:43:07Z                                 |
| disk_format      | qcow2                                                |
| file             | /v2/images/7c6371d1-8411-48c7-bf73-2ef6d6ff2a15/file |
| id               | 7c6371d1-8411-48c7-bf73-2ef6d6ff2a15                 |
| min_disk         | 0                                                    |
| min_ram          | 0                                                    |
| name             | debian-9.6-stretch                                   |
| owner            | admin                                                |
| properties       | default='true', show='true'                          | <---
| protected        | False                                                |
| schema           | /v2/schemas/image                                    |
| size             | 2081751040                                           |
| status           | active                                               |
| tags             |                                                      |
| updated_at       | 2018-11-22T07:01:11Z                                 |
| virtual_size     | None                                                 |
| visibility       | public                                               |
+------------------+------------------------------------------------------+

However, when creating a new instance, no image is allocated by default:

Screenshot from 2018-11-22 05-21-50.png (652×954 px, 79 KB)

Questions:

  • Are the "default" and "show" properties still used?
  • If not, how to have an image be selected as the default in Horizon?
  • OpenStack can activate/deactivate images, is that what the property "show" was used for in the past? Is it still required?

Event Timeline

So, just to clarify, you're talking about wanting Horizon to select an image by default in the 'Launch Instance' dialog, right?

Yes, but only because that was my understanding from reading the documentation here:

https://wikitech.wikimedia.org/w/index.php?title=Portal:Cloud_VPS/Admin/VM_images&oldid=1801161

Notice in the above glance image-update commands the use of properties. If default=true the image will be the default image selected in the instance creation interface; purging properties removes the 'default' state.

Maybe it's more a matter of clarifying what the documentation means by that? I'm fine with having to select an image myself in Horizon and having no default, just need to understand if that was/is expected though.

GTirloni moved this task from Doing to Graveyard on the cloud-services-team (Kanban) board.