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

Fix list backups after backup vm is expunged #9392

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

sureshanaparti
Copy link
Contributor

@sureshanaparti sureshanaparti commented Jul 15, 2024

Description

This PR fixes list backups after backup vm is expunged.

Issue: There is NPE when getting backup offering from the expunged VM, which is null (as it required to remove the backup offering assignment before expunging VM - introduced here: #5017)

Fixes #9341

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?

@sureshanaparti
Copy link
Contributor Author

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

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.

clgtm

Copy link

codecov bot commented Jul 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 12.25%. Comparing base (877c4d9) to head (2fb9f13).

Files Patch % Lines
...rg/apache/cloudstack/backup/dao/BackupDaoImpl.java 0.00% 4 Missing ⚠️
...dstack/api/command/user/backup/ListBackupsCmd.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               4.18    #9392    +/-   ##
==========================================
  Coverage     12.25%   12.25%            
- Complexity     9316     9317     +1     
==========================================
  Files          4699     4699            
  Lines        414603   414608     +5     
  Branches      52169    52055   -114     
==========================================
+ Hits          50821    50824     +3     
- Misses       357474   357475     +1     
- Partials       6308     6309     +1     
Flag Coverage Δ
unittests 12.25% <0.00%> (+<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.

Copy link
Contributor

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

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

Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

lgtm.
Tested and verified. List backups works fine after the fix.

@vishesh92 vishesh92 merged commit 8a00e25 into apache:4.18 Jul 15, 2024
25 of 26 checks passed
@vishesh92 vishesh92 deleted the fix-list-backup-after-vm-expunged branch July 15, 2024 11:34
vishesh92 added a commit that referenced this pull request Jul 15, 2024
* 4.18:
  Fix list backups after backup vm is expunged (#9392)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jul 23, 2024
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jul 23, 2024
* 4.18:
  Fix list backups after backup vm is expunged (apache#9392)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Listing backups fails when an instance is expunged without deleting its backups
6 participants