architecture not validated in "openstack image create"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
tamil vanan |
Bug Description
On Liberty
<error> <mistyped architecture, but is accepted anyway>
$ openstack image create \
--public \
--container-
--disk-format qcow2 \
--min-disk 2 --min-ram 512 \
--file /home/images/
SLES12SP1-x86_64
+------
| Field | Value |
+------
| checksum | fcdeb8b10730ac9
| container_format | bare |
| created_at | 2016-08-
| disk_format | qcow2 |
| file | /v2/images/
| id | e7f289aa-
| min_disk | 2 |
| min_ram | 512 |
| name | SLES12SP1-x86_64 |
| owner | f7ed231f244b4b2
| protected | False |
| schema | /v2/schemas/image |
| size | 362847744 |
| status | active |
| updated_at | 2016-08-
| virtual_size | None |
| visibility | public |
+------
# openstack image set \
--name SLES12-SP1 \
--architecture x96_64 \
--os-distro sles \ # <-- the problem
--os-version 12.1 \
SLES12SP1-x86_64
+------
| Field | Value |
+------
| architecture | x96_64 |
| checksum | fcdeb8b10730ac9
| container_format | bare |
| created_at | 2016-08-
| disk_format | qcow2 |
| file | /v2/images/
| id | e7f289aa-
| min_disk | 2 |
| min_ram | 512 |
| name | SLES12-SP1 |
| os_distro | sles |
| os_version | 12.1 |
| owner | f7ed231f244b4b2
| protected | False |
| schema | /v2/schemas/image |
| size | 362847744 |
| status | active |
| tags | [] |
| updated_at | 2016-08-
| virtual_size | None |
| visibility | public |
+------
$ openstack server create \
--flavor m1.smaller \
--image SLES12-SP1 \
vm01
Unexpected API Error. Please report this at http://
<type 'exceptions.
********
<Success> <Change architecture from x96_64 to x86_64>
# openstack image set \
--name SLES12-SP1 \
--architecture x86_64 \
--os-distro sles \
--os-version 12.1 \
SLES12-SP1
+------
| Field | Value |
+------
| architecture | x86_64 |
| checksum | fcdeb8b10730ac9
| container_format | bare |
| created_at | 2016-08-
| disk_format | qcow2 |
| file | /v2/images/
| id | e7f289aa-
| min_disk | 2 |
| min_ram | 512 |
| name | SLES12-SP1 |
| os_distro | sles |
| os_version | 12.1 |
| owner | f7ed231f244b4b2
| protected | False |
| schema | /v2/schemas/image |
| size | 362847744 |
| status | active |
| tags | [] |
| updated_at | 2016-08-
| virtual_size | None |
| visibility | public |
+------
# openstack server create \
--flavor m1.smaller
--image SLES12-SP1 vm01
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | building |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | |
| adminPass | B8U3uzDDMre9 |
| config_drive | |
| created | 2016-08-
| flavor | m1.smaller (6afe7481-
| hostId | |
| id | 12dc8a78-
| image | SLES12-SP1 (e7f289aa-
| key_name | None |
| name | vm01 |
| os-extended-
| progress | 0 |
| project_id | f7ed231f244b4b2
| properties | |
| security_groups | [{u'name': u'default'}] |
| status | BUILD |
| updated | 2016-08-
| user_id | 940803780c224ee
+------
# openstack server list
+------
| ID | Name | Status | Networks |
+------
| 12dc8a78-
+------
Changed in nova: | |
assignee: | nobody → tamil vanan (tamilhce) |
Changed in nova: | |
status: | New → In Progress |
description: | updated |
Changed in nova: | |
assignee: | nobody → tamil vanan (tamilhce) |
status: | New → In Progress |
reproduced the issue, working on the code fix