engine/schema: fix CPU cap limitation for upgraded environment - #7808
Conversation
CPU cap limitation was enabled as part of apache#6420 that changes behaviour for existing environments. The CPU cap limitation on KVM causes systemvms to not start or be really slow in nested and virtualised environments. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@blueorangutan package |
|
@rohityadavcloud a [SF] 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
@@ Coverage Diff @@
## 4.18 #7808 +/- ##
=========================================
Coverage 13.02% 13.02%
- Complexity 9029 9031 +2
=========================================
Files 2720 2720
Lines 256998 257010 +12
Branches 40081 40083 +2
=========================================
+ Hits 33462 33472 +10
Misses 219336 219336
- Partials 4200 4202 +2 see 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6637 |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
Code LGTM.
agree with the point, one can create new system offerings and use them.
|
@blueorangutan test |
|
@rohityadavcloud a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-7256) |
DaanHoogland
left a comment
There was a problem hiding this comment.
code looks good, @JoaoJandre please comment on this.
|
@blueorangutan test alma8 kvm-alma8 |
|
@rohityadavcloud a [SF] Trillian-Jenkins test job (alma8 mgmt + kvm-alma8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7272)
|
|
@blueorangutan test alma8 kvm-alma8 |
|
@rohityadavcloud a [SF] Trillian-Jenkins test job (alma8 mgmt + kvm-alma8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7295)
|
|
Sorry for the delayed response @dahn, I somehow missed the notification. I am against reverting #6420, as was explained there, keeping system VMs without CPU usage limits opens up space for different types of infrastructure attacks/misuses. Also, bugs like the ones fixed on #7826 and #6970 will affect much more the Cloud without a CPU cap on CPVMs, for example. The problem reported by @rohityadavcloud, where system VMs fail to start, is caused by another situation. When a system VM is provisioned, ACS sends commands to the system VM to generate the CSR and subsequently generate the certificate; these commands have a timeout of 60 seconds (hardcoded). When the CPU cap is enabled for the system VMs, the request and certificate generation procedures can take more than 60 seconds each to complete, causing a timeout in the execution of the commands and the non-provisioning of certificates for the system VMs. Thus, generating a handshake failure when the Also, I agree with @harikrishna-patnala, if the system VMs are too slow, you could just create new system offerings and use them. But the default offerings should protect users from attacks and possible bugs or misuses like the ones mentioned. |
CPU cap limitation was enabled as part of
#6420 that changes behaviour for existing environments.
The CPU cap limitation on KVM causes systemvms to not start or be really slow in nested and virtualised environments. We shouldn't change the defaults, but this could be documented or an operator can create new system offerings and use them.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
In KVM env, post upgrade SSVM operations were slow and a couple of times SSVM didn't start. By setting the value to false, no cpu share/limitation was put on new SSVMs and they could start and work. On git history check, found this to be a recent change introduced between 4.17->4.18 via #6420. This should be reverted.