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 32.35294% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.55%. Comparing base (6089c16) to head (bfaacfa).
⚠️ Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
...rg/apache/cloudstack/backup/BackupManagerImpl.java 57.89% 3 Missing and 5 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.55%   +0.01%     
- Complexity    15469    15517      +48     
============================================
  Files          5897     5906       +9     
  Lines        527426   528487    +1061     
  Branches      64412    64548     +136     
============================================
+ Hits          92522    92786     +264     
- Misses       424507   425265     +758     
- Partials      10397    10436      +39     
Flag Coverage Δ
uitests 3.59% <ø> (-0.02%) ⬇️
unittests 18.62% <32.35%> (+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

@blueorangutan
Copy link

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

@abh1sar
Copy link
Collaborator Author

abh1sar commented Oct 9, 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 15374

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.

some comments

this.tabKey = 'isoid'
this.form.isoid = value
this.form.templateid = null
for (const key in this.options.isos) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Using showOsTypeWarning as computed variable may have made things easier

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tried using computed variable at first. I found it better this way for templates as the code is already walking through the selected template and reading its properties, so don't need to go through options.templates again in the computed method. I applied the same logic to iso. But I am open to suggestions.

details.put(ApiConstants.TEMPLATE_ID, template.getUuid());
GuestOSVO guestOS = _guestOSDao.findById(guestOSId);
if (guestOS != null) {
details.put(ApiConstants.OS_TYPE_ID, guestOS.getUuid());
Copy link
Contributor

Choose a reason for hiding this comment

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

why not add displayname here itself?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Comment on lines 2117 to 2120
GuestOSVO guestOS = _guestOSDao.findByUuid(details.get(ApiConstants.OS_TYPE_ID));
if (guestOS != null) {
details.put(ApiConstants.OS_NAME, guestOS.getDisplayName());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

get from details?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I followed the same pattern as Template and ServiceOffering as I didn't want to store too many derived properties in the details table. But I guess it is ok for guestOS as it does simplify the code a bit.

</div>
</template>
</a-alert>
<br v-if="showOsTypeWarning"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

use margin for a-alert?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@abh1sar
Copy link
Collaborator Author

abh1sar commented Oct 10, 2025

@blueorangutan package

@abh1sar abh1sar requested a review from shwstppr October 10, 2025 11:57
@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 15399

@abh1sar
Copy link
Collaborator Author

abh1sar commented Oct 10, 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 15405

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

@abh1sar
Copy link
Collaborator Author

abh1sar commented Oct 11, 2025

@blueorangutan test

@blueorangutan
Copy link

@abh1sar 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-14633)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 57856 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11754-t14633-kvm-ol8.zip
Smoke tests completed. 145 look OK, 4 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestNASBackupAndRecovery>:setup Error 0.00 test_backup_recovery_nas.py
test_02_enableHumanReadableLogs Error 0.31 test_human_readable_logs.py
test_01_deployVMInSharedNetwork Failure 477.21 test_network.py
test_01_redundant_vpc_site2site_vpn Failure 407.52 test_vpc_vpn.py

@abh1sar
Copy link
Collaborator Author

abh1sar commented Oct 13, 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 15434

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

@abh1sar
Copy link
Collaborator Author

abh1sar commented Oct 13, 2025

@blueorangutan test keepEnv

@blueorangutan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

cloudstack 4.21 NAS backup and recovery issue.

5 participants