Skip to content

Conversation

@PeterBackroll
Copy link

@PeterBackroll PeterBackroll commented Nov 20, 2023

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

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

@boring-cyborg
Copy link

boring-cyborg bot commented Nov 20, 2023

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)
Here are some useful points:

@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@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
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 3.58%. Comparing base (6dc259c) to head (dd07f56).

❗ There is a different number of reports uploaded between BASE (6dc259c) and HEAD (dd07f56). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (6dc259c) HEAD (dd07f56)
unittests 1 0
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     
Flag Coverage Δ
uitests 3.58% <ø> (ø)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7806

@DaanHoogland
Copy link
Contributor

@PeterBackroll , nice to see this coming in. Will you add a documentation PR as well? I think you'll have a lot of reviews ;)

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-8383)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45945 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8251-t8383-kvm-centos7.zip
Smoke tests completed. 117 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_08_upgrade_kubernetes_ha_cluster Failure 672.30 test_kubernetes_clusters.py

@PeterBackroll
Copy link
Author

Hi @DaanHoogland Yes I will add a documentation PR as soon as possible :)

Copy link
Contributor

@DaanHoogland DaanHoogland left a 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 ;)

@rohityadavcloud
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7834

@shwstppr
Copy link
Contributor

@PeterBackroll can you please have a look at the GH actions failures

Copy link
Contributor

@DaanHoogland DaanHoogland left a 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 ;)

Copy link
Contributor

@DaanHoogland DaanHoogland left a 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)


public ConfigKey<String> BackrollPasswordConfigKey = new ConfigKey<>("Advanced", String.class,
"backup.plugin.backroll.config.password",
"VviX8dALauSyYJMqVYJqf3UyZOpO3joS",
Copy link
Contributor

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

Suggested change
"VviX8dALauSyYJMqVYJqf3UyZOpO3joS",
"password",

or

Suggested change
"VviX8dALauSyYJMqVYJqf3UyZOpO3joS",
"C'est vraiment secret",

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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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");

@andrijapanicsb
Copy link
Contributor

@PeterBackroll do we have any docs on how to configure the plugin, what kind of storage is supported, any limitations, etc?
Thx!

@rohityadavcloud rohityadavcloud changed the base branch from main to 4.19 February 5, 2024 09:04
@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13644

@github-project-automation github-project-automation bot moved this from In Progress to Done in Apache CloudStack 4.21.0 Jul 30, 2025
@rohityadavcloud
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14454

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file

@sureshanaparti
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-13966)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 69391 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8251-t13966-kvm-ol8.zip
Smoke tests completed. 141 look OK, 4 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_06_download_detached_volume Error 303.11 test_volumes.py
test_13_migrate_volume_and_change_offering Error 124.19 test_volumes.py
ContextSuite context=TestIpv6Vpc>:setup Error 0.00 test_vpc_ipv6.py
ContextSuite context=TestVPCNics>:setup Error 0.00 test_vpc_router_nics.py
ContextSuite context=TestVPCRedundancy>:setup Error 0.00 test_vpc_redundant.py

@sureshanaparti sureshanaparti moved this from Done to In Progress in Apache CloudStack 4.21.0 Jul 31, 2025
@abh1sar
Copy link
Collaborator

abh1sar commented Jul 31, 2025

@PeterBackroll PR #10140 is now merged which has the per-Backup Backup.Metrics changes. Please check if/how Backroll needs to handle that.
Let me know if I can help in anyway. Thanks.

@PeterBackroll
Copy link
Author

Thank you very much @abh1sar. I will contact you if necessary.

@rajujith
Copy link

rajujith commented Sep 11, 2025

@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.

2025-09-10 11:44:50,656 ERROR [o.a.c.b.b.BackrollClient] (BackgroundTaskPollManager-1:[ctx-3e1d0b09]) (logid:b6f10097) org.apache.cloudstack.backup.backroll.utils.BackrollHttpClientProvider$NotOkBodyException
2025-09-10 11:44:50,656 ERROR [o.a.c.b.B.BackupSyncTask] (BackgroundTaskPollManager-1:[ctx-3e1d0b09]) (logid:b6f10097) Error trying to run backup-sync background task due to: [Failed to sync backups]. com.cloud.utils.exception.CloudRuntimeException: Failed to sync backups
        at org.apache.cloudstack.backup.BackrollBackupProvider.getBackupMetrics(BackrollBackupProvider.java:183)

@harikrishna-patnala
Copy link
Contributor

@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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<version>4.21.0.0-SNAPSHOT</version>
<version>4.22.0.0-SNAPSHOT</version>

@DaanHoogland DaanHoogland marked this pull request as draft October 10, 2025 08:03
@harikrishna-patnala harikrishna-patnala modified the milestones: 4.22.0, 4.22.1 Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.