Repository navigation
Log improvement when deploying a VM - #14972
EnzoBartelt wants to merge 1 commit into
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
|
@blueorangutan package |
|
@bernardodemarco a [SL] 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. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #14972 +/- ##
=========================================
Coverage 16.46% 16.46%
+ Complexity 13713 13712 -1
=========================================
Files 5670 5670
Lines 501771 501764 -7
Branches 60965 60958 -7
=========================================
+ Hits 82610 82611 +1
+ Misses 409906 409897 -9
- Partials 9255 9256 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 20285 |
Description
Some logs generated when deploying VMs are very confusing, potentially leading to misudertanding of a success/failure. As example, the log shown below might make the reader believe that there was a problem at the deploy, but it was just a fail when creating a JSON string from a VM instance object.
Another case is when trying to allocate a VM using reserved resources. When there aren't reserved resources available, it explicitly states that there was a failure when allocating the VM. However, the available resources are verified in sequence, and the deployment workflow proceeds without any errors.
These situations have been addressed aiming to make the logs clearer for troubleshooting scenarios.
Types of changes
Bug Severity
How Has This Been Tested?
The PR was tested by deploying a VM and checking the Management Server logs, comparing them before and after the changes.