Enforced/Constrained Image Architecture Tagging
Bug #1519720 reported by
DataCentred DevOps Team
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Some operators running heterogeneous clouds rely on images having the architecture attribute set in glance to allow nova to schedule instances on hypervisors of the correct architecture. At present horizon presents this attribute as an optional text field, which is often ignored by end users who then end up with instances in the error state as an x86_64 image has been scheduled on an aarch64 hypervisor.
It would be nice to allow this field in horizon to be required and constrained to a set of supported architectures presented as a drop down.
Changed in horizon: | |
assignee: | nobody → DataCentred DevOps Team (devops-9) |
Changed in horizon: | |
status: | New → In Progress |
Changed in horizon: | |
assignee: | DataCentred DevOps Team (devops-9) → nobody |
Changed in horizon: | |
assignee: | nobody → Simon Murray (spjmurray) |
Changed in horizon: | |
assignee: | Simon Murray (spjmurray) → nobody |
assignee: | nobody → Simon Murray (spjmurray) |
Changed in horizon: | |
importance: | Undecided → Wishlist |
milestone: | none → newton-1 |
Changed in horizon: | |
milestone: | newton-1 → newton-2 |
Changed in horizon: | |
milestone: | newton-2 → newton-3 |
To post a comment you must log in.
I'm going to -2 this until a good case can be made for why the this can't be done using the Glance Metadata Definitions Catalog. [0] [1]
[0] http:// docs.openstack. org/developer/ glance/ metadefs- concepts. html /www.youtube. com/watch? v=zJpHXdBOoeM
[1] https:/
There is a disabled namespace that contains architecture now. See: http://<horizon_ url>/admin/ metadata_ defs/OS: :Glance: :CommonImagePro perties/ detail
You can enable it by associating it with OS::Glance::Image and make it public:
http:// 127.0.0. 1:8005/ admin/metadata_ defs/?namespace _marker= OS%3A%3ACompute %3A%3AVirtCPUTo pology
Then go to the image and you can find it in the update metadata dialog.
The metadata is also being added as a step to the new launch instance tables in this patch:
https:/ /review. openstack. org/#/c/ 236042/
In addition you could create your own by architecture namespace with your own choices by importing this into the metadata UI like this:
http:// imgur.com/ a/I4QSG
Using the below namespace.
{ :Architecture" , 09T16:50: 36Z", type_associatio ns": [
"created_ at": "2016-05- 09T16:50: 36Z",
"architecture" : {
"descripti on": "The CPU architecture that must be supported by the hypervisor. For example, x86_64, arm, or ppc64. Run uname -m to get the architecture of a machine. We strongly recommend using the architecture data vocabulary defined by the libosinfo project for this purpose.",
"title" : "CPU Architecture",
"x86_ 64",
"foo_ arch",
"bar_ arch"
"namespace": "OS::Glance:
"display_name": "Architecture",
"description": "When adding an image to Glance, you may specify the architecture.",
"visibility": "public",
"protected": true,
"created_at": "2016-05-
"resource_
{
"name": "OS::Glance::Image"
}
],
"properties": {
"type": "string",
"enum": [
]
}
}
}