agent: Detect existing hosts with UEFI support#6139
Conversation
|
@blueorangutan package |
|
@davidjumani 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. |
| details.put("url", hostMo.getHostName()); | ||
| details.put("username", username); | ||
| details.put("password", password); | ||
| boolean uefiLegacySupported = hostMo.isUefiLegacySupported(); |
There was a problem hiding this comment.
I think these could be kept, same for other discoverers
There was a problem hiding this comment.
It would be redundant as the code to check the UEFI support is subsequently called while adding a host
|
@blueorangutan package |
|
@davidjumani 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 2930 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
weizhouapache
left a comment
There was a problem hiding this comment.
tested on centos7, works fine
|
@blueorangutan test matrix |
|
@weizhouapache a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3664)
|
|
Trillian test result (tid-3671) |
|
@blueorangutan help |
|
@blueorangutan help |
|
@davidjumani I understand these words: "help", "hello", "thanks", "package", "test" Blessed contributors for kicking Trillian test jobs: ['rohityadavcloud', 'nvazquez', 'borisstoyanov', 'DaanHoogland', 'shwstppr', 'andrijapanicsb', 'Pearl1594', 'davidjumani', 'harikrishna-patnala', 'vladimirpetrov', 'sureshanaparti', 'weizhouapache', 'NuxRo'] |
|
@blueorangutan test centos7 vmware-67u3 |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
@blueorangutan test centos7 xcpng82 |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + xcpng82) has been kicked to run smoke tests |
|
@blueorangutan test centos7 xenserver-71 |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + xenserver-71) has been kicked to run smoke tests |
|
Trillian test result (tid-3691) |
|
@blueorangutan test centos7 xcpng82 |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + xcpng82) has been kicked to run smoke tests |
|
Trillian test result (tid-3690) |
|
Trillian test result (tid-3692) |
|
Trillian test result (tid-3698)
|
|
@blueorangutan package |
|
@weizhouapache 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 3004 |
|
@blueorangutan test |
|
@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3748)
|
nvazquez
left a comment
There was a problem hiding this comment.
LGTM - manually tested upgrading a 4.13 Vmware env with 2 hosts to 4.17:
Before upgrading:
MariaDB [cloud]> select * from host_details where name like '%uefi%';
Empty set (0.00 sec)
After upgrade:
MariaDB [cloud]> select * from host_details where name like '%uefi%';
+----+---------+------------------+-------+
| id | host_id | name | value |
+----+---------+------------------+-------+
| 24 | 2 | host.uefi.enable | true |
| 30 | 1 | host.uefi.enable | true |
+----+---------+------------------+-------+
2 rows in set (0.00 sec)
|
Will the check take place on every "upgrade" from now on? |
| } | ||
|
|
||
| private boolean hostSupportsUefi() { | ||
| String cmd = "rpm -qa | grep -i ovmf"; |
There was a problem hiding this comment.
cc @davidjumani @weizhouapache @DaanHoogland we may need to fix this as we support both EL and Ubuntu, rpm isn't installed by default on Ubuntu. Probably just check if /sys/firmware/efi using File::exists?
|
Just as an idea: |
… 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
Fixes #6087
Adds support to detect existing hosts with UEFI capability
Types of changes
Feature/Enhancement Scale
How Has This Been Tested?
Before :
After :