Skip to content
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

Enable Backup and Recovery for Shared Filesystems #9676

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

abh1sar
Copy link
Collaborator

@abh1sar abh1sar commented Sep 13, 2024

Description

This PR allows Backup and Recovery operations on Shared FileSystem Instances.

  • It was disallowed earlier to reduce interactions
  • Prospect users suggested that it is a very useful feature to have and will negatively impact feature adoption
  • Backup and Recovery works out of the box with Shared FIleSystems Instances as with any other instance. No special changes are required to support it. I only had to remove certain checks.
  • This change has no interaction with any other subsystem of cloudstack.
  • Tested all workflows with NAS BnR plugin.

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
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@abh1sar
Copy link
Collaborator Author

abh1sar commented Sep 13, 2024

@blueorangutan package

@blueorangutan
Copy link

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

Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.81%. Comparing base (a88967b) to head (f69bd9d).
Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##               main    #9676     +/-   ##
===========================================
  Coverage     15.81%   15.81%             
  Complexity    12554    12554             
===========================================
  Files          5629     5629             
  Lines        492029   492013     -16     
  Branches      61304    63525   +2221     
===========================================
  Hits          77811    77811             
+ Misses       405894   405878     -16     
  Partials       8324     8324             
Flag Coverage Δ
uitests 4.48% <ø> (ø)
unittests 16.60% <ø> (+<0.01%) ⬆️

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.

@blueorangutan
Copy link

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

@abh1sar
Copy link
Collaborator Author

abh1sar commented Sep 13, 2024

@blueorangutan package

@blueorangutan
Copy link

@abh1sar 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 11110

@abh1sar
Copy link
Collaborator Author

abh1sar commented Sep 15, 2024

@blueorangutan ui

@blueorangutan
Copy link

@abh1sar a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/9676 (QA-JID-449)

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 good, but can you provide some background @abh1sar ? (why was it disabled first and why is that no longer necessary)

Copy link
Member

@rohityadavcloud rohityadavcloud left a comment

Choose a reason for hiding this comment

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

LGTM didn't test it

@borisstoyanov borisstoyanov marked this pull request as ready for review September 16, 2024 09:48
@borisstoyanov borisstoyanov changed the title [WIP] Enable Backup and Recovery for Shared Filesystems Enable Backup and Recovery for Shared Filesystems Sep 16, 2024
@borisstoyanov
Copy link
Contributor

looks good, but can you provide some background @abh1sar ? (why was it disabled first and why is that no longer necessary)

prospect users reported that the Shared Filesystem feature would be deemed unusable without backups enabled and we identified the functionality as blocker for the feature, that's why we decided to included it as well, I'm currently testing it. Thanks.

@borisstoyanov
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

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

LGTM,
I've tested this with NAS plugin setup for backups and was able to cover all of the main functions of backups (create, delete, schedule, remove etc).

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

@blueorangutan
Copy link

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

Test Result Time (s) Test File

Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@abh1sar
Copy link
Collaborator Author

abh1sar commented Sep 17, 2024

@JoaoJandre This is deemed a blocker for the Shared FileSystems feature. The change involves removing certain checks related to Shared FileSystems Instances and BnR. BnR works with Shared FS Instances like any other instance without any need for code change. This change doesn't affect other subsystems in any way.

@blueorangutan
Copy link

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

@DaanHoogland
Copy link
Contributor

I think that the prior smoke tests are still valid and we are ready to merge.

@rohityadavcloud
Copy link
Member

@JoaoJandre over to you to review. This is considered blocker wrt the new feature, though not necessarily a regression/blocker for normal/usual operations.
Re-running test (though not strictly required)
@blueorangutan test

@blueorangutan
Copy link

@rohityadavcloud 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-11495)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 61665 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9676-t11495-kvm-ol8.zip
Smoke tests completed. 139 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_secure_vm_migration Error 405.17 test_vm_life_cycle.py
ContextSuite context=TestHostMaintenanceAgents>:setup Error 1451.38 test_host_maintenance.py

Copy link
Contributor

@JoaoJandre JoaoJandre left a comment

Choose a reason for hiding this comment

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

Code LGTM. But this is not really a blocker, is it? I can see that it is important to the feature overall but not having this will not break anything. I'll merge this as it is a really simple change that has been tested by the community. But I'll change the label as from the release perspective this is not a blocker and labeling it so is misleading.

@JoaoJandre JoaoJandre merged commit 7d95952 into apache:main Sep 18, 2024
26 checks passed
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Sep 23, 2024
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.

7 participants