shwstppr opened a new pull request, #7179:
URL: https://github.com/apache/cloudstack/pull/7179

   ### 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-release` ins such cases.
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [ ] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [ ] Minor
   - [ ] Trivial
   
   
   ### Screenshots (if appropriate):
   Before change
   
![image](https://user-images.githubusercontent.com/153340/217517887-6c6fd844-3033-49f9-bb86-2ec8f4e97ddf.png)
   
   After changer, after re-adding the host
   ![Screenshot from 2023-02-08 
17-01-21](https://user-images.githubusercontent.com/153340/217518032-78875145-899d-4557-b010-dafd2d168cd5.png)
   
   ### How Has This Been Tested?
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to 
-->
   <!-- see how your change affects other areas of the code, etc. -->
   
   
   <!-- Please read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) 
document -->
   
   Before changes,
   ```
   [root@ref-trl-4390-k-Mol9-abhishek-kumar-kvm1 ~]# 
/usr/share/cloudstack-common/scripts/vm/hypervisor/versions.sh
   Host.OS=Red
   Host.OS.Version=
   Host.OS.Kernel.Version=5.15.0-1.43.4.1.el9uek.x86_64
   ```
   
   After change,
   ```
   [root@ref-trl-4390-k-Mol9-abhishek-kumar-kvm1 ~]# 
/usr/share/cloudstack-common/scripts/vm/hypervisor/versions.sh
   Host.OS=Oracle Linux Server
   Host.OS.Version=9.0
   Host.OS.Kernel.Version=5.15.0-1.43.4.1.el9uek.x86_64
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to