CentOS7.6: Unable to launch vm with UEFI boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Austin Sun |
Bug Description
Brief Description
-----------------
Failed to launch vm with UEFI boot.
Severity
--------
Major
Steps to Reproduce
------------------
# Create an uefi glance image using uefi guest image.
glance image-create --property hw_firmware_
# Create cinder volume off that image
cinder create --display-name vol-tenant2 --image-id 5ff8241e-
# Create vm from above volume
nova boot --flavor 97270889-
Expected Behavior
------------------
VM launches successfully
Actual Behavior
----------------
[2019-02-01 03:46:49,902] 387 DEBUG MainThread ssh.expect :: Output:
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | building |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| adminPass | WYc8QC7cbD6y |
| config_drive | |
| created | 2019-02-
| description | - |
| flavor:disk | 5 |
| flavor:ephemeral | 0 |
| flavor:extra_specs | {} |
| flavor:
| flavor:ram | 1024 |
| flavor:swap | 0 |
| flavor:vcpus | 2 |
| hostId | |
| id | 9be9e52a-
| image | Attempt to boot from volume - no image supplied |
| key_name | keypair-tenant2 |
| locked | False |
| metadata | {} |
| name | tenant2-
| os-extended-
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tags | [] |
| tenant_id | f7bddf6ed41c483
| updated | 2019-02-
| user_id | 01f8da72e2ea496
| wrs-if:nics | |
| wrs-res:pci_devices | |
| wrs-res:topology | node:-, 1024MB, pgsize:4K, vcpus:2 |
| wrs-res:vcpus | [2, 2, 2] |
| wrs-sg:server_group | |
+------
Server building... 0% complete
Server building... 0% complete
Server building... 0% complete
Server building... 0% complete
Error building server
ERROR (ResourceInErro
controller-1:~$
Reproducibility
---------------
Reproducible
System Configuration
-------
Any
Branch/Pull Time/Commit
-------
f/centos76 as 2019/01/30
Timestamp/Logs
--------------
Easy to reproduce. Test image attached.
Changed in starlingx: | |
assignee: | nobody → Cindy Xie (xxie1) |
Changed in starlingx: | |
assignee: | Cindy Xie (xxie1) → Austin Sun (sunausti) |
tags: | added: stx.distro.other |
tags: | added: stx.2019.05 |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: |
added: stx.2.0 removed: stx.2019.05 |
Changed in starlingx: | |
status: | Fix Released → Confirmed |
tags: | added: stx.retestneeded |
after analysis the nova/nova/ virt/libvirt/ driver. py UEFI_LOADER_ PATH = { OVMF/OVMF_ CODE.fd" , AAVMF/AAVMF_ CODE.fd"
DEFAULT_
"x86_64": "/usr/share/
"aarch64": "/usr/share/
}
But for CentOS7.6 upgrade OVMF to OVMF-20180508- 3.gitee3198e672 e2.el7. noarch. and change the file struct . OVMF/OVMF_ CODE.fd is removed from package. so nava check UEFI failed.
/usr/share/
Options: 2.gitc9e5618. el7.noarch. rpm(CentOS7. 5 package)
1) we downgrade OVMF to OVMF-20150414-
2) modify/upgrade Nova patch.