scripts: fix kvm host undefined version#7179
Conversation
On Oracle Linux 9.0, version shows as undefined and even Host.OS shows as "Red". This change fixes the script to use '/etc/os-release' ins such cases. Signed-off-by: Abhishek Kumar <abhishek.kumar@shapeblue.com>
|
@blueorangutan package |
|
@borisstoyanov 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. |
|
Checked script changes on different hosts (to check for any regression): Ubuntu 22.04 AlmaLinux 9 CentOS7: Rocky 8 |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5530 |
|
Kudos, SonarCloud Quality Gate passed! |
weizhouapache
left a comment
There was a problem hiding this comment.
tested on centos7/rocky8/ubuntu22, looks good
curl -sL https://raw.githubusercontent.com/apache/cloudstack/99561e21b77474d874edec8928f8b2f7482641c4/scripts/vm/hypervisor/versions.sh | bash -
Codecov Report
@@ Coverage Diff @@
## main #7179 +/- ##
=========================================
Coverage 12.63% 12.63%
Complexity 8609 8609
=========================================
Files 2711 2711
Lines 255748 255748
Branches 39871 39871
=========================================
Hits 32303 32303
Misses 219347 219347
Partials 4098 4098 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan help aljeblieft |
|
@DaanHoogland I understand these words: "help", "hello", "thanks", "package", "test" Blessed contributors for kicking Trillian test jobs: ['rohityadavcloud', 'nvazquez', 'borisstoyanov', 'DaanHoogland', 'shwstppr', 'andrijapanicsb', 'rahulbcn27', 'davidjumani', 'harikrishna-patnala', 'vladimirpetrov', 'weizhouapache', 'NuxRo', 'mlsorensen'] |
|
@blueorangutan test alma9 kvm-alma9 |
|
@shwstppr a Trillian-Jenkins test job (alma9 mgmt + kvm-alma9) has been kicked to run smoke tests |
|
Trillian test result (tid-6157)
|
|
@blueorangutan test alma9 kvm-alma9 |
|
@DaanHoogland a Trillian-Jenkins test job (alma9 mgmt + kvm-alma9) has been kicked to run smoke tests |
|
Trillian test result (tid-6164)
|
|
@shwstppr is this ready for merge? |
|
@DaanHoogland this may need a LGTM from @borisstoyanov |








Description
On Oracle Linux 9.0, version shows as undefined and even Host.OS shows as "Red". This change fixes the script to use
/etc/os-releaseins such cases.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Before change

After changer, after re-adding the host

How Has This Been Tested?
Before changes,
After change,