Skip to content

Conversation

abh1sar
Copy link
Collaborator

@abh1sar abh1sar commented Sep 29, 2025

Description

Fixes Issues

#11631 : Handle create instance from backup if the template was deleted (273920b)

  • Added Guest OS Type in the backup metadata and giving a warning while creating instance if a template / iso with a different guest OS is selected while creating an instance from backup.
Screenshot 2025-10-09 at 5 36 35 PM

#11746 : Create Instance from Backup on another Zone not showing Zone options for normal Users (35ea878)
Screenshot 2025-09-29 at 6 48 16 PM

#11747 : Reuse IP Address button not showing in Create Instance from Backup (77e9125)
Screenshot 2025-09-29 at 6 46 11 PM
Screenshot 2025-09-29 at 6 46 33 PM

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?

Copy link

codecov bot commented Sep 29, 2025

Codecov Report

❌ Patch coverage is 30.30303% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.56%. Comparing base (6089c16) to head (c3d5fec).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...rg/apache/cloudstack/backup/BackupManagerImpl.java 55.55% 4 Missing and 4 partials ⚠️
server/src/main/java/com/cloud/api/ApiDBUtils.java 0.00% 5 Missing ⚠️
...loudstack/api/response/BackupOfferingResponse.java 0.00% 3 Missing ⚠️
...apache/cloudstack/api/response/BackupResponse.java 0.00% 3 Missing ⚠️
...e/cloudstack/backup/dao/BackupOfferingDaoImpl.java 0.00% 3 Missing ⚠️
...src/main/java/com/cloud/api/ApiResponseHelper.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #11754      +/-   ##
============================================
+ Coverage     17.54%   17.56%   +0.02%     
- Complexity    15469    15498      +29     
============================================
  Files          5897     5898       +1     
  Lines        527426   527802     +376     
  Branches      64412    64482      +70     
============================================
+ Hits          92522    92706     +184     
- Misses       424507   424668     +161     
- Partials      10397    10428      +31     
Flag Coverage Δ
uitests 3.59% <ø> (-0.01%) ⬇️
unittests 18.62% <30.30%> (+0.02%) ⬆️

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.

@abh1sar
Copy link
Collaborator Author

abh1sar commented Sep 29, 2025

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

@abh1sar
Copy link
Collaborator Author

abh1sar commented Sep 29, 2025

@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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15224

@abh1sar abh1sar added this to the 4.22.0 milestone Sep 30, 2025
@DaanHoogland DaanHoogland linked an issue Oct 1, 2025 that may be closed by this pull request
@sureshanaparti sureshanaparti self-assigned this Oct 7, 2025
@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 15321

@abh1sar
Copy link
Collaborator Author

abh1sar commented Oct 8, 2025

@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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15330

Copy link
Contributor

@harikrishna-patnala harikrishna-patnala 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

@Param(description = "The backup offering corresponding to this backup was removed from the VM", since = "4.21.0")
private Boolean vmOfferingRemoved;

@SerializedName(ApiConstants.BACKUP_VM_EXPUNGED)
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
@SerializedName(ApiConstants.BACKUP_VM_EXPUNGED)
@SerializedName(ApiConstants.IS_BACKUP_VM_EXPUNGED)

private Boolean vmOfferingRemoved;

@SerializedName(ApiConstants.BACKUP_VM_EXPUNGED)
@Param(description = "The VM from which the backup was taken is expunged", since = "4.22.0")
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
@Param(description = "The VM from which the backup was taken is expunged", since = "4.22.0")
@Param(description = "Indicates whether the VM from which the backup was taken is expunged or not", since = "4.22.0")


@SerializedName(ApiConstants.BACKUP_VM_EXPUNGED)
@Param(description = "The VM from which the backup was taken is expunged", since = "4.22.0")
private Boolean vmExpunged;
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
private Boolean vmExpunged;
private Boolean isVmExpunged;

<a-input v-model:value="form.name" />
</a-form-item>
<a-form-item v-if="!resource.virtualmachineid" name="preserveIpAddresses" style="margin-top: 8px">
<a-form-item v-if="resource.backupvmexpunged" name="preserveIpAddresses" style="margin-top: 8px">
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
<a-form-item v-if="resource.backupvmexpunged" name="preserveIpAddresses" style="margin-top: 8px">
<a-form-item v-if="resource.isbackupvmexpunged" name="preserveIpAddresses" style="margin-top: 8px">

this.dataPreFill.allowtemplateisoselection = true
this.dataPreFill.isoid = this.vmdetails.templateid
this.dataPreFill.allowIpAddressesFetch = !this.resource.virtualmachineid
this.dataPreFill.allowIpAddressesFetch = this.resource.backupvmexpunged
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
this.dataPreFill.allowIpAddressesFetch = this.resource.backupvmexpunged
this.dataPreFill.allowIpAddressesFetch = this.resource.isbackupvmexpunged

public static final String BACKUP_STORAGE_LIMIT = "backupstoragelimit";
public static final String BACKUP_STORAGE_TOTAL = "backupstoragetotal";
public static final String BACKUP_VM_OFFERING_REMOVED = "vmbackupofferingremoved";
public static final String BACKUP_VM_EXPUNGED = "backupvmexpunged";
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
public static final String BACKUP_VM_EXPUNGED = "backupvmexpunged";
public static final String IS_BACKUP_VM_EXPUNGED = "isbackupvmexpunged";

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

cloudstack 4.21 NAS backup and recovery issue.
4 participants