Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Sep 11, 2025

Description

This PR enhances the VM deployment workflow by allowing backup offerings and backup schedules to be specified at the time of VM creation.

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):

image
deployvm-backup.mp4

How Has This Been Tested?

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

Add backup offering selection to Deploy VM wizard and assign selected backup offering to the VM after successful deployment. This enables users to choose a backup offering during VM creation, and the VM is automatically associated with the selected offering post-deployment.

Signed-off-by: Abhishek Kumar <[email protected]>
Copy link

codecov bot commented Sep 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.39%. Comparing base (3d6ec29) to head (eec0c8d).
⚠️ Report is 27 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #11612      +/-   ##
============================================
+ Coverage     17.36%   17.39%   +0.03%     
- Complexity    15237    15286      +49     
============================================
  Files          5888     5889       +1     
  Lines        525741   526243     +502     
  Branches      64164    64256      +92     
============================================
+ Hits          91274    91553     +279     
- Misses       424167   424355     +188     
- Partials      10300    10335      +35     
Flag Coverage Δ
uitests 3.61% <ø> (-0.02%) ⬇️
unittests 18.44% <ø> (+0.04%) ⬆️

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.

Signed-off-by: Abhishek Kumar <[email protected]>
@shwstppr shwstppr changed the title ui: allow assigning backup offring during instance deploy ui: allow provisioning backups during instance deploy Sep 12, 2025
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
@apache apache deleted a comment from blueorangutan Sep 13, 2025
@apache apache deleted a comment from blueorangutan Sep 13, 2025
@apache apache deleted a comment from blueorangutan Sep 13, 2025
@apache apache deleted a comment from blueorangutan Sep 13, 2025
@shwstppr
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr 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/11612 (QA-JID-749)

@shwstppr shwstppr requested a review from Copilot September 15, 2025 05:28
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the VM deployment workflow by allowing users to specify backup offerings and backup schedules during instance creation. The enhancement adds a new backup selection step to the deployment wizard and enables post-deployment automation of backup assignment and schedule creation.

  • Adds a new backup selection step to the VM deployment wizard
  • Modifies existing backup components to support standalone usage outside of existing VM contexts
  • Implements post-deployment actions to automatically assign backup offerings and create schedules

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
DeployInstanceBackupSelection.vue New component for selecting backup offerings and schedules during VM deployment
FormSchedule.vue Modified to support custom submit functions instead of direct API calls
BackupSchedule.vue Modified to support custom delete functions instead of direct API calls
DeployVM.vue Integrated backup selection step and post-deployment backup automation
BackupScheduleWizard.vue Updated to reflect parameter changes in backup components
storage.js Changed section title from "backup" to "backups"
InfiniteScrollSelect.vue Added support for options that can hide their icons
Various locale files Added new translation entries for backup-related labels
Comments suppressed due to low confidence (1)

ui/src/views/compute/DeployVM.vue:1

  • Using timestamp-based IDs ('SCH_' + timestamp) for schedules could lead to collisions if multiple schedules are created rapidly. Consider using a more robust ID generation method or a counter.
// Licensed to the Apache Software Foundation (ASF) under one

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

return
}
this.selectedBackupOffering = val
if (this.backupSchedules && this.backupSchedules.length > 0 && !['nas'].includes(val.provider)) {
Copy link
Preview

Copilot AI Sep 15, 2025

Choose a reason for hiding this comment

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

The hardcoded provider check ['nas'].includes(val.provider) is a magic value that should be documented or extracted to a constant to explain why 'nas' provider is treated differently.

Copilot uses AI. Check for mistakes.

@shwstppr shwstppr requested a review from vishesh92 September 15, 2025 06:58
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.

clgtm

@apache apache deleted a comment from blueorangutan Sep 15, 2025
@apache apache deleted a comment from blueorangutan Sep 15, 2025
@apache apache deleted a comment from blueorangutan Sep 15, 2025
@apache apache deleted a comment from blueorangutan Sep 15, 2025
@shwstppr
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr 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/11612 (QA-JID-753)

@borisstoyanov
Copy link
Contributor

@blueorangutan package

@borisstoyanov borisstoyanov marked this pull request as ready for review September 17, 2025 06:33
@blueorangutan
Copy link

@borisstoyanov 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: In Progress
Development

Successfully merging this pull request may close these issues.

5 participants