Conversation
852e8ce to
f2e0809
Compare
Codecov Report
@@ Coverage Diff @@
## main #7397 +/- ##
============================================
+ Coverage 13.23% 13.30% +0.06%
- Complexity 9212 9255 +43
============================================
Files 2728 2735 +7
Lines 257335 257825 +490
Branches 40117 40167 +50
============================================
+ Hits 34053 34293 +240
- Misses 218991 219214 +223
- Partials 4291 4318 +27
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
4075398 to
53fdfe2
Compare
server/src/test/java/org/apache/cloudstack/vm/schedule/VMSchedulerImplTest.java
Show resolved
Hide resolved
shwstppr
left a comment
There was a problem hiding this comment.
@vishesh92 Looks promising. Some comments
engine/schema/src/main/resources/META-INF/db/schema-41810to41900.sql
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/cloudstack/vm/schedule/VMScheduleManagerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/cloudstack/vm/schedule/VMScheduleManagerImpl.java
Show resolved
Hide resolved
| @@ -0,0 +1,412 @@ | |||
| // Licensed to the Apache Software Foundation (ASF) under one | |||
There was a problem hiding this comment.
Should this be called InstanceSchedules or something for clarity?
server/src/main/java/org/apache/cloudstack/vm/schedule/VMScheduleManagerImpl.java
Outdated
Show resolved
Hide resolved
| /* | ||
| TODO: Check if we should use schedule or scheduleAtFixedRate here? | ||
| scheduleAtFixedRate can result in issues if the task is taking more than 1 minute | ||
| schedule might result in skipping of some scheduled jobs | ||
| */ |
engine/schema/src/main/java/org/apache/cloudstack/vm/schedule/dao/VMScheduleDaoImpl.java
Outdated
Show resolved
Hide resolved
engine/schema/src/main/java/org/apache/cloudstack/vm/schedule/dao/VMScheduleDaoImpl.java
Outdated
Show resolved
Hide resolved
engine/schema/src/main/resources/META-INF/db/schema-41810to41900.sql
Outdated
Show resolved
Hide resolved
e2b1b1f to
e71a68c
Compare
|
@blueorangutan package |
|
@vishesh92 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. |
|
SonarCloud Quality Gate failed. |
|
@blueorangutan test |
|
@vishesh92 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5976 |
|
@blueorangutan test |
|
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
6524b6c to
c2ba181
Compare
|
@blueorangutan package |
|
@vishesh92 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. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6315 |
|
@blueorangutan test |
|
@vishesh92 a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-6827)
|
Fixes apache#11175 Behaviour introduced in apache#7397 always validates start-end times during update even when they are not changed which leads to failure to enable/disable schedule if the start time has passed. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
…pache#11314) Fixes apache#11175 Behaviour introduced in apache#7397 always validates start-end times during update even when they are not changed which leads to failure to enable/disable schedule if the start time has passed. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>








Description
This PR adds a feature to setup schedules to stop/start/restart your VMs.
Documentation PR: apache/cloudstack-documentation#313
Related issue: #3387
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?