Fix UEFI detection on KVM and prevent deployments on non UEFI enabled hosts#6423
Fix UEFI detection on KVM and prevent deployments on non UEFI enabled hosts#6423nvazquez merged 4 commits intoapache:mainfrom
Conversation
|
@blueorangutan package |
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3503 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| s_logger.debug("agent.hooks.libvirt_vm_on_stop.method is " + _agentHooksVmOnStopMethod); | ||
| } | ||
|
|
||
| public boolean isUefiPropertiesFileSet() { |
There was a problem hiding this comment.
@nvazquez UEFI properties are loaded from this file while configuring the resource, no need to check again for this file, instead check for properties loaded or not. Also, re-use this method in loadUefiProperties() method below for the same condition. Thanks.
| public boolean isUefiPropertiesFileSet() { | |
| public boolean isUefiPropertiesLoaded() { | |
| return _uefiProperties != null && _uefiProperties.getProperty("guest.loader.legacy") != null | |
| } |
There was a problem hiding this comment.
Done, thanks - nice catch
There was a problem hiding this comment.
Have actually simplified the check
|
@blueorangutan package |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3507 |
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
UI build: ✔️ |
|
Trillian test result (tid-4266)
|
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3508 |
|
SonarCloud Quality Gate failed. |
… hosts (apache#6423) (apache#221) * Do not allow UEFI deployments on non UEFI enabled hosts * Fix UEFI detection on KVM * Refactor * Improvement agent: Detect existing hosts with UEFI support (apache#6139) * agent: Pass uefi enabled status as part of ready command * Cleanup * Fix checkstyle * Save uefi status if different Co-authored-by: Marcus Sorensen <mls@apple.com>









Description
This PR fixes 2 issues:
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested on KVM - one UEFI enabled host, one disabled