Skip to content

Commit 9ff1440

Browse files
committed
Merge remote-tracking branch 'apache/main' into refactor-isrootadmin
2 parents 61dbcca + 1574013 commit 9ff1440

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

engine/schema/src/main/resources/META-INF/db/schema-41910to42000.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ UPDATE `cloud`.`service_offering` SET ram_size = 512 WHERE unique_name IN ("Clou
5555
AND system_use = 1 AND ram_size < 512;
5656

5757
-- NSX Plugin --
58-
CREATE TABLE `cloud`.`nsx_providers` (
58+
CREATE TABLE IF NOT EXISTS `cloud`.`nsx_providers` (
5959
`id` bigint unsigned NOT NULL auto_increment COMMENT 'id',
6060
`uuid` varchar(40),
6161
`zone_id` bigint unsigned NOT NULL COMMENT 'Zone ID',

plugins/storage/image/swift/src/main/java/org/apache/cloudstack/storage/datastore/driver/SwiftImageStoreDriverImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424

2525
import javax.inject.Inject;
2626

27-
import com.cloud.configuration.Config;
28-
import com.cloud.utils.SwiftUtil;
29-
3027
import org.apache.cloudstack.api.ApiConstants;
3128
import org.apache.cloudstack.engine.subsystem.api.storage.CreateCmdResult;
3229
import org.apache.cloudstack.engine.subsystem.api.storage.DataObject;
@@ -42,7 +39,6 @@
4239
import org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl;
4340
import org.apache.cloudstack.storage.image.store.ImageStoreImpl;
4441
import org.apache.cloudstack.storage.to.TemplateObjectTO;
45-
import org.apache.log4j.Logger;
4642

4743
import com.cloud.agent.api.storage.DownloadAnswer;
4844
import com.cloud.agent.api.to.DataObjectType;

server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,17 +1283,6 @@ public boolean restoreBackupToVM(final Long backupId, final Long vmId) throws Re
12831283
throw new CloudRuntimeException("Unable to create Instance from backup as the backup has a different number of disks than the Instance");
12841284
}
12851285

1286-
int index = 0;
1287-
for (VolumeVO vmVolume: vmVolumes) {
1288-
Backup.VolumeInfo backupVolume = backupVolumes.get(index);
1289-
if (vmVolume.getSize() < backupVolume.getSize()) {
1290-
throw new CloudRuntimeException(String.format(
1291-
"Instance volume size %d[GiB] for volume (%s) is less than the backed-up volume size %d[GiB] for backed-up volume (%s).",
1292-
vmVolume.getSize(), vmVolume.getUuid(), backupVolume.getSize(), backupVolume.getUuid()));
1293-
}
1294-
index++;
1295-
}
1296-
12971286
BackupOffering offering = backupOfferingDao.findByIdIncludingRemoved(backup.getBackupOfferingId());
12981287
if (offering == null) {
12991288
throw new CloudRuntimeException("Failed to find backup offering");

0 commit comments

Comments
 (0)