Fix transition exception when scaling Stopped k8s clusters#11598
Fix transition exception when scaling Stopped k8s clusters#11598weizhouapache merged 3 commits intoapache:4.20from
Conversation
|
@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✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11598 +/- ##
=============================================
- Coverage 16.17% 4.00% -12.17%
=============================================
Files 5656 402 -5254
Lines 498082 32642 -465440
Branches 60415 5799 -54616
=============================================
- Hits 80569 1308 -79261
+ Misses 408551 31183 -377368
+ Partials 8962 151 -8811
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14906 |
...rations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesCluster.java
Outdated
Show resolved
Hide resolved
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14919 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14259)
|
weizhouapache
left a comment
There was a problem hiding this comment.
code lgtm
I will test it
|
tested ok @bernardodemarco
@bernardodemarco |
@weizhouapache, thanks for testing!
Yes, makes sense. I'll soon apply that. Thanks! |
|
@weizhouapache, done! Verified now that when scaling a stopped k8s cluster to the same offering, no exception is thrown |
|
@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. |
good, tested ok, thanks @bernardodemarco |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14939 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
tested ok
|
|
We had some issues with the testing environments. |
|
[SF] Trillian test result (tid-14283)
|
…he#11598) * add new k8s cluster transition * apply suggestion * apply suggestion
Description
When scaling the compute offering of stopped k8s clusters, the following exception is thrown in the Management Server logs:
It is relevant to highlight that, although the exception is thrown, it does not interfere in the scaling process.
This PR proposes to fix the exception throw by adding a new state and transitions to the Kubernetes Cluster finite state machine.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Before upgrading the environment with the current PR's changes, I verified that when scaling the compute offering of stopped k8s clusters, the exception was thrown.
After applying the PR's changes, I verified that when scaling the compute offering of stopped k8s clusters, no exceptions were thrown.