Skip to content

Commit d8a2f5d

Browse files
GabrielBrascherandrijapanicsb
authored andcommitted
Fix typo: the past tense of shutdown is shutdown, not shutdowned (#3659)
1 parent 1771727 commit d8a2f5d

8 files changed

Lines changed: 10 additions & 8 deletions

File tree

api/src/main/java/com/cloud/vm/VirtualMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public enum State {
5252
Migrating(true, "VM is being migrated. host id holds to from host"),
5353
Error(false, "VM is in error"),
5454
Unknown(false, "VM state is unknown."),
55-
Shutdowned(false, "VM is shutdowned from inside");
55+
Shutdown(false, "VM state is shutdown from inside");
5656

5757
private final boolean _transitional;
5858
String _description;

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2970,7 +2970,7 @@ public void destroyExpendableRouters(final List<? extends VirtualRouter> routers
29702970
for (final VirtualRouter router : routers) {
29712971
if (router.getState() == VirtualMachine.State.Stopped ||
29722972
router.getState() == VirtualMachine.State.Error ||
2973-
router.getState() == VirtualMachine.State.Shutdowned ||
2973+
router.getState() == VirtualMachine.State.Shutdown ||
29742974
router.getState() == VirtualMachine.State.Unknown) {
29752975
s_logger.debug("Destroying old router " + router);
29762976
_routerService.destroyRouter(router.getId(), context.getAccount(), context.getCaller().getId());

engine/schema/src/main/resources/META-INF/db/schema-41300to41400.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
-- KVM: enable storage data motion on KVM hypervisor_capabilities
2323
UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported` = 1 WHERE `hypervisor_capabilities`.`hypervisor_type` = 'KVM';
2424

25+
-- #3659 Fix typo: the past tense of shutdown is shutdown, not shutdowned
26+
UPDATE `cloud`.`vm_instance` SET state='Shutdown' WHERE state='Shutdowned';
27+
2528
-- Fix OS category for some Ubuntu and RedHat OS-es
2629
UPDATE `cloud`.`guest_os` SET `category_id`='10' WHERE `id`=277 AND display_name="Ubuntu 17.04";
2730
UPDATE `cloud`.`guest_os` SET `category_id`='10' WHERE `id`=278 AND display_name="Ubuntu 17.10";
@@ -33,4 +36,3 @@ UPDATE `cloud`.`guest_os` SET `category_id`='4' WHERE `id`=283 AND display_name=
3336
UPDATE `cloud`.`guest_os` SET `category_id`='4' WHERE `id`=284 AND display_name="Red Hat Enterprise Linux 7.5";
3437
UPDATE `cloud`.`guest_os` SET `category_id`='4' WHERE `id`=285 AND display_name="Red Hat Enterprise Linux 7.6";
3538
UPDATE `cloud`.`guest_os` SET `category_id`='4' WHERE `id`=286 AND display_name="Red Hat Enterprise Linux 8.0";
36-

plugins/network-elements/juniper-contrail/src/main/java/org/apache/cloudstack/network/contrail/model/VirtualMachineModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ boolean isActiveInstance(VMInstanceVO instance) {
224224
case Migrating:
225225
case Starting:
226226
case Running:
227-
case Shutdowned:
227+
case Shutdown:
228228
case Stopped:
229229
case Stopping:
230230
return true;

server/src/main/java/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ private boolean allowToLaunchNew(long dcId) {
918918
}
919919
List<ConsoleProxyVO> l =
920920
_consoleProxyDao.getProxyListInStates(dcId, VirtualMachine.State.Starting, VirtualMachine.State.Running, VirtualMachine.State.Stopping,
921-
VirtualMachine.State.Stopped, VirtualMachine.State.Migrating, VirtualMachine.State.Shutdowned, VirtualMachine.State.Unknown);
921+
VirtualMachine.State.Stopped, VirtualMachine.State.Migrating, VirtualMachine.State.Shutdown, VirtualMachine.State.Unknown);
922922

923923
String value = _configDao.getValue(Config.ConsoleProxyLaunchMax.key());
924924
int launchLimit = NumbersUtil.parseInt(value, 10);

server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public Snapshot revertSnapshot(Long snapshotId) {
290290
// in order to revert the volume
291291
if (instanceId != null) {
292292
UserVmVO vm = _vmDao.findById(instanceId);
293-
if (vm.getState() != State.Stopped && vm.getState() != State.Shutdowned) {
293+
if (vm.getState() != State.Stopped && vm.getState() != State.Shutdown) {
294294
throw new InvalidParameterValueException("The VM the specified disk is attached to is not in the shutdown state.");
295295
}
296296
// If target VM has associated VM snapshots then don't allow to revert from snapshot

ui/scripts/instances.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517
'Destroyed': 'off',
518518
'Expunging': 'off',
519519
'Stopping': 'warning',
520-
'Shutdowned': 'warning'
520+
'Shutdown': 'warning'
521521
}
522522
}
523523
},

ui/scripts/metrics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
'Destroyed': 'off',
448448
'Expunging': 'off',
449449
'Stopping': 'warning',
450-
'Shutdowned': 'warning'
450+
'Shutdown': 'warning'
451451
},
452452
compact: true
453453
},

0 commit comments

Comments
 (0)