diff --git a/pom.xml b/pom.xml index 324b94d835b..80e994f637c 100644 --- a/pom.xml +++ b/pom.xml @@ -165,7 +165,7 @@ 3.4.4_1 4.0.1 8.5.61 - 1.0.0-build222 + build-217-jenkins-27 6.7 0.5.0 6.2.0-3.1 @@ -334,7 +334,7 @@ ${cs.xstream.version} - com.trilead + org.jenkins-ci trilead-ssh2 ${cs.trilead.version} @@ -739,6 +739,20 @@ + + + repo.jenkins-ci.org.releases + http://repo.jenkins-ci.org/releases/ + + false + + + + repo.jenkins-ci.org.public + http://repo.jenkins-ci.org/public/ + + + install diff --git a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java index a7be48f074e..cc00cb6cbae 100644 --- a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java +++ b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java @@ -1107,6 +1107,14 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic * This will be checked again at the hypervisor level where we can see * the actual disk size. */ + if (currentSize > newSize) { + VolumeVO vol = _volsDao.findById(cmd.getEntityId()); + if (vol != null && ImageFormat.QCOW2.equals(vol.getFormat()) && !Volume.State.Allocated.equals(volume.getState())) { + String message = "Unable to shrink volumes of type QCOW2"; + s_logger.warn(message); + throw new InvalidParameterValueException(message); + } + } if (currentSize > newSize && !shrinkOk) { throw new InvalidParameterValueException("Going from existing size of " + currentSize + " to size of " + newSize + " would shrink the volume." + "Need to sign off by supplying the shrinkok parameter with value of true."); diff --git a/test/pom.xml b/test/pom.xml index 17f623a83ef..69e3f28a455 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -37,7 +37,7 @@ log4j - com.trilead + org.jenkins-ci trilead-ssh2 diff --git a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue index d456827d8a1..7191f1935fd 100644 --- a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue +++ b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue @@ -222,13 +222,13 @@ export default { this.$emit('stepError', step, this.stepData) } }, - trafficLabelParam (trafficTypeID, physicalNetworkID) { + trafficLabelParam (trafficTypeID, physicalNetworkIndex) { const hypervisor = this.prefillContent.hypervisor.value - physicalNetworkID = this.isAdvancedZone ? physicalNetworkID : 0 + physicalNetworkIndex = this.isAdvancedZone ? physicalNetworkIndex : 0 let physicalNetwork = [] let trafficConfig = null if (this.prefillContent.physicalNetworks) { - physicalNetwork = this.prefillContent.physicalNetworks[0].traffics.filter(traffic => traffic.type === trafficTypeID) + physicalNetwork = this.prefillContent.physicalNetworks[physicalNetworkIndex].traffics.filter(traffic => traffic.type === trafficTypeID) trafficConfig = physicalNetwork.length > 0 ? physicalNetwork[0] : null } let trafficLabel @@ -476,13 +476,13 @@ export default { try { if (!this.stepData.stepMove.includes('addTrafficType' + index + key)) { if (traffic.type === 'public') { - await this.addTrafficType('Public') + await this.addTrafficType('Public', index) } else if (traffic.type === 'management') { - await this.addTrafficType('Management') + await this.addTrafficType('Management', index) } else if (traffic.type === 'guest') { - await this.addTrafficType('Guest') + await this.addTrafficType('Guest', index) } else if (traffic.type === 'storage') { - await this.addTrafficType('Storage') + await this.addTrafficType('Storage', index) } this.stepData.stepMove.push('addTrafficType' + index + key) } @@ -1605,8 +1605,8 @@ export default { }) }) }, - addTrafficType (trafficType) { - const getTrafficParams = this.trafficLabelParam(trafficType.toLowerCase()) + addTrafficType (trafficType, index) { + const getTrafficParams = this.trafficLabelParam(trafficType.toLowerCase(), index) let params = {} params.trafficType = trafficType diff --git a/ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue b/ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue index 08ed2382af0..2ea3f390524 100644 --- a/ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue +++ b/ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue @@ -60,31 +60,6 @@ - - - {{ $t('message.edit.traffic.type') }} - - - - -
{{ $t('message.required.traffic.type') }} + + + {{ $t('message.edit.traffic.type') }} + + + + +