Skip to content

Commit 245a722

Browse files
authored
Merge pull request #94664 from sbeskin-redhat/CNV_56275_Confirm_VM_stop_restart_pause_actions
CNV-56275: Confirm VM stop restart pause actions
2 parents a9b5386 + 4eb43b9 commit 245a722

6 files changed

+29
-7
lines changed

modules/virt-controlling-multiple-vms.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ You can start, stop, restart, pause, and unpause multiple virtual machines (VMs)
2121
* To change the state of all VMs in the selected project:
2222
2323
.. Right-click the name of the project in the tree view and select the intended action from the menu.
24-
24+
.. If action confirmation is enabled, confirm the action in the confirmation dialog.
2525
* To change the state of specific VMs:
2626
2727
.. Select a checkbox next to the VMs you want to work with. To select all VMs, click the checkbox in the *VirtualMachines* table header.
2828
.. Click *Actions* and select the intended action from the menu.
29+
.. If action confirmation is enabled, confirm the action in the confirmation dialog.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/managing-vms/virt-controlling-vm-states.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="virt-enable-vm-action-confirmation-web_{context}"]
7+
8+
= Enabling confirmations of virtual machine actions
9+
10+
The *Stop*, *Restart*, and *Pause* actions can display confirmation dialogs if confirmation is enabled. By default, confirmation is disabled.
11+
12+
.Procedure
13+
14+
. In the *Virtualization* section of the {product-title} web console, navigate to *Overview* -> *Settings* -> *Cluster* -> *General settings*.
15+
. Toggle the *VirtualMachine actions confirmation* setting to On.

modules/virt-pausing-vm-web.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ You can pause a virtual machine (VM) from the web console.
1919
* To stay on this page, where you can perform actions on multiple VMs:
2020
2121
.. Click the Options menu {kebab} located at the far right end of the row and click *Pause VirtualMachine*.
22+
.. If action confirmation is enabled, click *Pause* in the confirmation dialog.
2223

2324
* To pause the VM from the tree view:
24-
2525
.. Click the *>* icon next to the project name to open the list of VMs.
26-
2726
.. Right-click the name of the VM and select *Pause*.
28-
27+
.. If action confirmation is enabled, click *Pause* in the confirmation dialog.
2928
* To view comprehensive information about the selected VM before you pause it:
3029
3130
.. Access the *VirtualMachine details* page by clicking the name of the VM.
3231

3332
.. Click *Actions* -> *Pause*.
33+
.. If action confirmation is enabled, click *Pause* in the confirmation dialog.

modules/virt-restarting-vm-web.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ To avoid errors, do not restart a VM while it has a status of *Importing*.
2424
* To stay on this page, where you can perform actions on multiple VMs:
2525
2626
.. Click the Options menu {kebab} located at the far right end of the row and click *Restart*.
27+
.. If action confirmation is enabled, click *Restart* in the confirmation dialog.
2728

2829
* To restart the VM from the tree view:
2930
3031
.. Click the *>* icon next to the project name to open the list of VMs.
3132

3233
.. Right-click the name of the VM and select *Restart*.
34+
.. If action confirmation is enabled, click *Restart* in the confirmation dialog.
3335

3436
* To view comprehensive information about the selected VM before
3537
you restart it:
@@ -38,3 +40,4 @@ you restart it:
3840
machine.
3941

4042
.. Click *Actions* -> *Restart*.
43+
.. If action confirmation is enabled, click *Restart* in the confirmation dialog.

modules/virt-stopping-vm-web.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ You can stop a virtual machine (VM) from the web console.
1919
* To stay on this page, where you can perform actions on multiple VMs:
2020
2121
.. Click the Options menu {kebab} located at the far right end of the row and click *Stop VirtualMachine*.
22-
22+
.. If action confirmation is enabled, click *Stop* in the confirmation dialog.
2323
* To stop the VM from the tree view:
2424
2525
.. Click the *>* icon next to the project name to open the list of VMs.
2626

2727
.. Right-click the name of the VM and select *Stop*.
28-
28+
.. If action confirmation is enabled, click *Stop* in the confirmation dialog.
2929
* To view comprehensive information about the selected VM before you stop it:
3030
3131
.. Access the *VirtualMachine details* page by clicking the name of the VM.
3232

3333
.. Click *Actions* → *Stop*.
34+
.. If action confirmation is enabled, click *Stop* in the confirmation dialog.

virt/managing_vms/virt-controlling-vm-states.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9+
You can use xref:../../virt/getting_started/virt-using-the-cli-tools.adoc#virt-using-the-cli-tools[`virtctl`] to manage virtual machine states and perform other actions from the CLI. For example, you can use `virtctl` to force stop a VM or expose a port.
10+
911
You can stop, start, restart, pause, and unpause virtual machines from the web console.
1012

11-
You can use xref:../../virt/getting_started/virt-using-the-cli-tools.adoc#virt-using-the-cli-tools[`virtctl`] to manage virtual machine states and perform other actions from the CLI. For example, you can use `virtctl` to force stop a VM or expose a port.
13+
include::modules/virt-enable-vm-action-confirmation-web.adoc[leveloffset=+1]
1214

1315
include::modules/virt-starting-vm-web.adoc[leveloffset=+1]
1416

0 commit comments

Comments
 (0)