-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Create new Instance from VM backup #10140
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
Merged
Merged
Changes from all commits
Commits
Show all changes
188 commits
Select commit
Hold shift + click to select a range
35ed72c
Initial api and service layer changes
abh1sar e094e14
Nas backup provider changes
abh1sar 27feeda
Add hypervisor, service_offering and template to backups table.
abh1sar f98da37
Create backup_details table and add details related to vm.
abh1sar 04a2deb
Initial UI form
abh1sar d3439ad
Save networkIds and diskOfferingIds in backup_details. Create require…
abh1sar 753d80f
Restore backup to VM plugin change for VeeamBackupProvider
abh1sar 72c943f
UI form updates
abh1sar 7ae078e
Create instance from backup using just the backupid
abh1sar 31f89df
Remove zone and iso from DeployVMFromBackup.vue
abh1sar 7e3f083
Create multiple data volumes using the deployVirtualMachine Api
abh1sar f46fad8
Create multiple data volumes for createVMFromBackup api and ui
abh1sar d941809
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 10f7beb
Fix build failure after merge
abh1sar edbdd01
setup ssh key pair again after restore
abh1sar f004264
added miniops and maxiops customisation in ui
abh1sar b1a86b8
added UT for backupManager and UserVmManager
abh1sar 3b317e0
Minor ui fixes and null checks
abh1sar cfc9c6f
Remove import vm from restorebackuptoinstance
abh1sar 8717e3a
set willDeleteBackupsOnOfferingRemoval to false for dummy and veeam. …
abh1sar f4f0655
Preserve device Ids of data volumes in the new instance.
abh1sar 07f24cb
Throw exception if diskOffering stored in the backup is not present.
abh1sar 38ad9be
Limit the volume size of new instance to minimum of backup volume size
abh1sar c2db7af
diskofferingid not supported by createVmFromBackup
abh1sar 50aae80
remove userdata from ui form
abh1sar 963437d
Remove console logs from ui forms
abh1sar 300d096
fix UT failures in BackupManagerTest and UserVmManagerImplTest
abh1sar 3c3885c
Merge branch 'main' into instance-from-backup
abh1sar 0bea21f
Peserve override disk offering from backup
abh1sar 129cb85
Merge branch 'instance-from-backup' of https://github.com/shapeblue/c…
abh1sar 723537b
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 683aebe
Fix ut issue on merge
abh1sar 5992a1e
Addressed minor review comments
abh1sar 2da38da
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 5ab6c4a
Fix spelling errors.
abh1sar 26d26d8
added more Unit Tests
abh1sar 0cebdae
Merge branch 'main' into instance-from-backup
abh1sar 7c600c7
Return diskofferingid for compute only diskoffering as well in servic…
abh1sar ac96d06
minor ui fixes
abh1sar 08d4581
Handle inactive disk offering edge case
abh1sar 735c379
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 675fc8d
backupvmdetails will be shown in listbackupsresponse only if listvmde…
abh1sar b708397
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 4d2e444
remove extra line from schema-42010to42100.sql
abh1sar b7590ba
update Template selection + minor fixes
abh1sar ae62219
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 9559323
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 934b7ab
Add name and description to backup create
abh1sar 1626a37
Fix UT failure in BackupManagerTest
abh1sar 0043207
Fix UT failure in BackupManagerTest
abh1sar a60b717
Fix imports in VeeamBackupProvider
abh1sar 4197912
Add object storage capacity and alerts.
abh1sar beb05ae
Backup storage capacity and alert framework layer.
abh1sar c72a10e
Nas provider support for backup storage stats
abh1sar 54bf763
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 7791ff3
Don't show object store and backup capacity if total capacity is 0
abh1sar 3d3f6c1
Merge branch 'instance-from-backup' of https://github.com/shapeblue/c…
abh1sar 051d52c
Handle backup listing and restore for expunged and purged Instances
abh1sar 73c185c
Merge remote-tracking branch 'upstream/main' into instance-from-backup
abh1sar dd45cfe
Fix BackupManagerTest failure
abh1sar 9894eff
Added UT to AlertManager, BackupDao, NasBackupProvider and BackupMana…
abh1sar 47b6cd1
make capacity dasboard scrollable
abh1sar e909c18
Fix syntax errors in schema-42010to42100.sql
abh1sar 22d25d3
Fix pre commit failure in BackupDaoImplTest
abh1sar 4997056
Enable cephFS in NAS backup repository
abh1sar 1574f3a
Error out vm expunge from destroyvmCmd if it has a backup offering wi…
abh1sar 912639b
Extract duplicate code into new method checkAndRemoveBackupOfferingBe…
abh1sar 1123adf
Addressed last set of review comments
abh1sar d76cb40
fix npe in updateObjectStore
abh1sar b2a499e
Handle backup offering remove without deleting backups
abh1sar bdeb62d
Remove the concept of orphaned backup as vm with backups cannot be pu…
abh1sar 918b8b8
fix listVmIdsWithBackupsInZone
abh1sar 39ea6b7
Add dataSize, backupSize to Backup.RestorePoint for all providers
abh1sar 55486d6
minor UI fixes
abh1sar f49651f
Show name,description fields only for synchronous backup provider plu…
abh1sar a50f358
Merge remote-tracking branch 'upstream/main' into instance
abh1sar c307f82
Fix test failure in BackupDaoImplTest
abh1sar e0a1c97
Added UT and minor bug fixes
abh1sar d1b9b6a
Merge branch 'main' into instance-from-backup
abh1sar 70d2395
Merge branch 'instance-from-backup' of https://github.com/shapeblue/c…
abh1sar c45efba
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 1241252
fixed for build failure in NASBackupProvider
abh1sar eb4b132
Addressed last set of review comments from Wei.
abh1sar f8a20a4
Fixed deploydb issue by using TEXT instead of varchar(65536) in backu…
abh1sar 17ecc5a
Handle create VM from backup for VMs created using ISO.
abh1sar 6b098ce
Minor bug fix in UserVmManagerImpl
abh1sar 8803c78
Fix for UT failures
abh1sar 57b0f2c
Fix build failures
abh1sar 1075a55
BaseDeployVMCmd as the base class for DeployVmCmd and CreateVmFromBac…
abh1sar d2fb239
Fix Expunge generic error
abh1sar 2d89a8f
Fix Backup Storage capacity and NAS backup without mount options
abh1sar e2fa0be
Dummy BnR plugin integration test
abh1sar f3f3f97
Store and get IpAddresses details from backup metadata while creating…
abh1sar 555eed8
fix pre-commit failure in CreateVMFromBackupCmd
abh1sar a34c78a
Added more UT to UserVmManagerImplTest
abh1sar a298c33
Fix errors in testDestroyVM in UserVmManagerImplTest
abh1sar 062e343
Add more UT to BackupManagerTest
abh1sar 359af7b
Added UT to BackupManager, NetworkService and StorageManager
abh1sar cd91111
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 5ff2e36
Fixed a bug in publishUsageEvent
abh1sar 756af19
Fixed compilation error in BackupManagerTest
abh1sar 58d1067
Add Nas backup and recovery integration test
abh1sar bb97ea6
Merge branch 'instance-from-backup' of https://github.com/shapeblue/c…
abh1sar 4ef398b
Disallow offering delete if it is not assigned to any vm, but it has …
abh1sar 8c881ef
Add backup offering in the list view and search filter in list backups
abh1sar 784cf76
Merge branch 'instance-from-backup' of https://github.com/shapeblue/c…
abh1sar c31da8b
use listBackupOfferings instead of listConfiguration in startbackup.v…
abh1sar 1e164ef
Don't show select deployment infra section to end users in create ins…
abh1sar b6f1c62
Move diskofferingid, miniops and maxiops from backup details to backu…
abh1sar 910c719
Fix upgrade path issues
abh1sar 8b9d861
Fix Restore and Attach single volume when the original vm and volume …
abh1sar a8d74ed
Merge remote-tracking branch 'upstream/main' into instance
abh1sar bc1beb6
Merge branch 'main' into instance-from-backup
abh1sar 127f807
Fix error in restoring an expunged vm
abh1sar 40ba664
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 1b10b3b
Get backed up disk offering details from backup.volumeinfo
abh1sar f644f9c
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 96c4652
Fix keyword and name search for backups
abh1sar 091c21a
don't call vmInstanceDao.listByIdsIncludingRemoved with empty list.
abh1sar d6d4442
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 440fcc0
Handle delete network in Create Instance from Backup form
abh1sar 6bedc27
Set the backup status as 'Error' in case of any error from backend.
abh1sar 118bbe2
Cleanup the created VM if restore fails afterwards.
abh1sar 2e8e8e3
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 622393f
Fix build failure
abh1sar 47459ed
Enable setting lease for instance created from backup
abh1sar 6b60a21
Handle null l2 network ipaddress during preserve ip
abh1sar 75859b6
Merge branch 'main' into instance-from-backup
abh1sar 18dd883
honour and show object store total size
abh1sar 79f83db
Fixed error handling in nasbackup.sh
abh1sar 3aa0954
Fix bucket quota checks
abh1sar 2db672d
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 184d98f
fix complation error after merge
abh1sar f8448b3
fix ut failure in BucketApiServiceImplTest
abh1sar f14e93c
Error handling in nas backup plugin
abh1sar dfbbc49
Fix BackupManagerTest failure
abh1sar 9ce63f9
fix iso and hypervisor type
abh1sar 8b9f9b5
return error from the rsync command during restore
abh1sar ef59186
freeze the fs before backup-begin in nasbackup.sh
abh1sar 0f2606f
iso fixes
abh1sar f703751
Add volume size checks for rootdisk and overrride rootdisk
abh1sar 39a3ce0
Add quiesce option to createBackup and CreateBackupSchedule
abh1sar 0740088
fix minor bug in BackupSchedule.vue
abh1sar e2f2f24
Disable console access for Restoring VMs.
abh1sar ffce09e
Merge branch 'main' into instance-from-backup
abh1sar e8445bb
Added UT for DeployVMCmd
abh1sar f3a7878
Merge branch 'instance-from-backup' of https://github.com/shapeblue/c…
abh1sar cb833ac
fix ui api -> getAPI
abh1sar d45ef5e
fix lint
abh1sar d96d969
fix checkstyle
abh1sar a94104d
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 759579c
Fix merge issues
abh1sar 0bdd37e
fix size check logic and deleted template
abh1sar 285d6f0
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 75d8888
fix ut errors
abh1sar f38db97
Show name in backup list in Instance tab + some changes in error, log…
abh1sar cb7123f
fix UT failure
abh1sar 8ba1436
Show backup instance metadata as a separate tab
abh1sar 4bacb50
Save and restore Instance settings to/from backup
abh1sar b5830c6
Fix UT
abh1sar a3f7bfa
review comments
abh1sar 65ac762
add license to BackupMetadata.vue
abh1sar 7572d7b
fix checkstyle
abh1sar c8987c6
fix backupdaoimpltest
abh1sar 34bb9f2
fix backupmanagertest
abh1sar e03b9c0
fix error in VeeamBackupProvider.java
abh1sar cc69f4f
Don't overwrite vm settings during create from backup + nas backup fix
abh1sar fdb8349
Error out create instance early for other providers
abh1sar 1fc6742
get template details from backup in backup response
abh1sar 1dc12e2
fix UserVmManagerImplTest
abh1sar fef53cf
Use VmDiskInfo inplace of DiskOfferingInfo to pass disk related infor…
abh1sar 1fec98a
Merge remote-tracking branch 'upstream/main' into instance
abh1sar 2018822
fix override disk offering + BackupManagerTest
abh1sar 85f86be
revert change to make vm_id nullable in backup table
abh1sar 9463711
Merge remote-tracking branch 'upstream/main' into instance
abh1sar a3a8106
rename UserVMDetails to VMInstanceDetails
abh1sar 317b23e
addressed review comments
abh1sar d96a2b8
fix checkstyle
abh1sar e82bcfd
Merge remote-tracking branch 'upstream/main' into instance-from-backup
abh1sar 66aeff8
smoke test failure + minor fixes
abh1sar 2ae9ca4
Merge remote-tracking branch 'upstream/main' into instance-from-backu…
abh1sar ffc6ab8
fix checkstyle
abh1sar 9451c48
Merge remote-tracking branch 'upstream/main' into instance-from-backu…
abh1sar 59aac60
Merge remote-tracking branch 'upstream/main' into instance-from-backu…
abh1sar 629127b
fix backupmanagertest
abh1sar 6e5fa8d
Merge remote-tracking branch 'upstream/main' into instance-from-backu…
abh1sar f9cf862
Merge branch 'main' into instance-from-backup
abh1sar 226e82a
Merge remote-tracking branch 'upstream/main' into instance-from-backup
abh1sar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
| package com.cloud.vm; | ||
|
|
||
| import com.cloud.offering.DiskOffering; | ||
| import com.cloud.offering.DiskOfferingInfo; | ||
|
|
||
| public class VmDiskInfo extends DiskOfferingInfo { | ||
| private Long _deviceId; | ||
|
|
||
| public VmDiskInfo(DiskOffering diskOffering, Long size, Long minIops, Long maxIops) { | ||
| super(diskOffering, size, minIops, maxIops); | ||
| } | ||
|
|
||
| public VmDiskInfo(DiskOffering diskOffering, Long size, Long minIops, Long maxIops, Long deviceId) { | ||
| super(diskOffering, size, minIops, maxIops); | ||
| _deviceId = deviceId; | ||
| } | ||
|
|
||
| public Long getDeviceId() { | ||
| return _deviceId; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.