-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Backroll Plugin #8251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Backroll Plugin #8251
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 |
|
@weizhouapache 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 @@
## main #8251 +/- ##
============================================
- Coverage 17.55% 3.58% -13.98%
============================================
Files 5911 445 -5466
Lines 529359 37536 -491823
Branches 64655 6901 -57754
============================================
- Hits 92949 1347 -91602
+ Misses 425952 36025 -389927
+ Partials 10458 164 -10294
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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7806 |
|
@PeterBackroll , nice to see this coming in. Will you add a documentation PR as well? I think you'll have a lot of reviews ;) |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-8383)
|
|
Hi @DaanHoogland Yes I will add a documentation PR as soon as possible :) |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some comments @PeterBackroll .
I haven't gotten to review the Provider and Client yet, the core of the plugin.
I'll do that next week ;)
.../backup/backroll/src/test/java/org/apache/cloudstack/backup/backroll/BackrollClientTest.java
Outdated
Show resolved
Hide resolved
...s/backup/backroll/src/test/java/org/apache/cloudstack/backup/BackrollBackupProviderTest.java
Outdated
Show resolved
Hide resolved
...java/org/apache/cloudstack/backup/backroll/model/response/policy/BackupPoliciesResponse.java
Show resolved
Hide resolved
...rg/apache/cloudstack/backup/backroll/model/response/policy/BackrollBackupPolicyResponse.java
Show resolved
Hide resolved
...kup/backroll/model/response/metrics/virtualMachineBackups/VirtualMachineBackupsResponse.java
Show resolved
Hide resolved
...p/backroll/src/main/java/org/apache/cloudstack/backup/backroll/model/BackrollTaskStatus.java
Show resolved
Hide resolved
...kup/backroll/src/main/java/org/apache/cloudstack/backup/backroll/model/BackrollOffering.java
Show resolved
Hide resolved
...ackroll/src/main/java/org/apache/cloudstack/backup/backroll/model/BackrollBackupMetrics.java
Show resolved
Hide resolved
...ackup/backroll/src/main/java/org/apache/cloudstack/backup/backroll/model/BackrollBackup.java
Show resolved
Hide resolved
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/backroll/BackrollClient.java
Show resolved
Hide resolved
|
@blueorangutan package |
|
@rohityadavcloud 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7834 |
|
@PeterBackroll can you please have a look at the GH actions failures |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some comments @PeterBackroll .
I haven't gotten to review the Provider and Client yet, the core of the plugin.
Thatś up next ;)
...ckroll/src/main/java/org/apache/cloudstack/backup/backroll/api/command/GetBackrollHello.java
Outdated
Show resolved
Hide resolved
...ckroll/src/main/java/org/apache/cloudstack/backup/backroll/api/command/GetBackrollHello.java
Outdated
Show resolved
Hide resolved
...kroll/src/main/java/org/apache/cloudstack/backup/backroll/api/response/ApiHelloResponse.java
Outdated
Show resolved
Hide resolved
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks generally good, @PeterBackroll .
some changes will have to be done though (before merging)
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/BackrollBackupProvider.java
Outdated
Show resolved
Hide resolved
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/BackrollBackupProvider.java
Show resolved
Hide resolved
|
|
||
| public ConfigKey<String> BackrollPasswordConfigKey = new ConfigKey<>("Advanced", String.class, | ||
| "backup.plugin.backroll.config.password", | ||
| "VviX8dALauSyYJMqVYJqf3UyZOpO3joS", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make this more clear, this string is just as insecure but less inviting to change
| "VviX8dALauSyYJMqVYJqf3UyZOpO3joS", | |
| "password", |
or
| "VviX8dALauSyYJMqVYJqf3UyZOpO3joS", | |
| "C'est vraiment secret", |
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/BackrollBackupProvider.java
Outdated
Show resolved
Hide resolved
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/BackrollBackupProvider.java
Outdated
Show resolved
Hide resolved
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/BackrollBackupProvider.java
Outdated
Show resolved
Hide resolved
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/BackrollBackupProvider.java
Outdated
Show resolved
Hide resolved
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/BackrollBackupProvider.java
Outdated
Show resolved
Hide resolved
| public boolean deleteBackup(Backup backup, boolean forced) { | ||
| s_logger.info("backroll delete backup id: " + backup.getExternalId()); | ||
| if(backup.getStatus().equals(Backup.Status.BackingUp)) { | ||
| throw new CloudRuntimeException("You can't delete a backup while it still BackingUp"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| throw new CloudRuntimeException("You can't delete a backup while it still BackingUp"); | |
| throw new CloudRuntimeException("You can't delete a backup while it's still BackingUp"); |
plugins/backup/backroll/src/main/java/org/apache/cloudstack/backup/backroll/BackrollClient.java
Outdated
Show resolved
Hide resolved
|
@PeterBackroll do we have any docs on how to configure the plugin, what kind of storage is supported, any limitations, etc? |
|
@blueorangutan package |
|
@sureshanaparti 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 ✔️ debian ✔️ suse15. SL-JID 13644 |
|
@blueorangutan package |
|
@rohityadavcloud 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 ✔️ debian ✔️ suse15. SL-JID 14454 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this file
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13966)
|
|
@PeterBackroll PR #10140 is now merged which has the per-Backup Backup.Metrics changes. Please check if/how Backroll needs to handle that. |
|
Thank you very much @abh1sar. I will contact you if necessary. |
|
@PeterBackroll, I tried the plugin with BackROLL v1.0.0-beta.1, the backup got created, but the status is not updated in CloudStack due to the following error. Once the related fixes are made, I will try the plugin again. |
|
@PeterBackroll Thanks for keep working on this PR. If we want this PR to get into 4.22 version please continue to fix the issues and make it stable before September itself. 4.22 freeze date will be in the first week of October. |
| <parent> | ||
| <artifactId>cloudstack-plugins</artifactId> | ||
| <groupId>org.apache.cloudstack</groupId> | ||
| <version>4.21.0.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <version>4.21.0.0-SNAPSHOT</version> | |
| <version>4.22.0.0-SNAPSHOT</version> |
Description
This is the pull request for Backroll Plugin (a backup & restore plugin).
This plugin allows users to use Backroll as backup provider inside Cloudstack.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity