-
-
-
+
+ VirtualMachines are not needed. Only scenarios/courses without Machines
+ were selected.
+
+
+
+
+
+
+
+ In simple mode, define the number of users per environment. Virtual
+ machines are calculated for you.
+
-
-
- User count higher than max
-
- (max
- {{ maxUserCounts[selectedEnvironments[it]?.environment] }})
-
+
Environment
+
Users
-
-
-
- Total
-
-
{{ simpleUserTotal() }} users
-
-
-
-
-
- The following environments are incompatible with simple mode:
-
-
-
Simple Mode Compatibility
-
- An environment must be able to support the creation of all types
- of required VMs, as well as have enough capacity for at least
- one user (and all their associated VMs).
-
-
-
-
-
{{ s }}
-
-
-
-
- In advanced mode, define the number of virtual machines per
- environment. Remember to account for the number of expected users,
- thus number_of_users * number_of_required_vms.
-
-
VM count higher than maxUser count higher than max
+ (max
+ {{ maxUserCounts[selectedEnvironments[it]?.environment] }})
+
+
+ Total
+
+
{{ simpleUserTotal() }} users
+
+
+
+
+
+ The following environments are incompatible with simple mode:
+
+
+
+
Simple Mode Compatibility
+
+ An environment must be able to support the creation of all
+ types of required VMs, as well as have enough capacity for at
+ least one user (and all their associated VMs).
+
+
+
+
+
{{ s }}
+
+
+
+
+ In advanced mode, define the number of virtual machines per
+ environment. Remember to account for the number of expected users,
+ thus number_of_users * number_of_required_vms.
+
+
+ The following VMs are required per user:
+
+
{{ item.key }}: {{ item.value }}
-
-
+
+
+
+
+
Environment
+
VM Template
+
Count
+
+
+
+
+
+
+
{{ getEnvironmentName(groupName) }}
+
{{ getVirtualMachineTemplateName(controlName) }}
+
+
+
+ VM count higher than max
+
+
+
+
+
+
+
+
@@ -634,7 +650,10 @@
Basic Information
VM Information
-
+
+ VirtualMachines are not needed for this ScheduledEvent.
+
+
Environment
@@ -824,7 +843,10 @@
Basic Information
VM Information
-
+
+ VirtualMachines are not needed for this ScheduledEvent.
+
+
Environment
diff --git a/src/app/event/new-scheduled-event/new-scheduled-event.component.ts b/src/app/event/new-scheduled-event/new-scheduled-event.component.ts
index 80bd7b29..2ce0c1e6 100644
--- a/src/app/event/new-scheduled-event/new-scheduled-event.component.ts
+++ b/src/app/event/new-scheduled-event/new-scheduled-event.component.ts
@@ -96,6 +96,7 @@ export class NewScheduledEventComponent
public availableEnvironments: EnvironmentAvailability[] = [];
public checkingEnvironments: boolean = true;
public noEnvironmentsAvailable: boolean = false;
+ public noVirtualMachinesNeeded: boolean = false;
public unavailableVMTs: string[] = [];
public environments: Environment[] = [];
public keyedEnvironments: Map = new Map();
@@ -756,6 +757,17 @@ export class NewScheduledEventComponent
});
});
+ //If there are no templates needed, we do not need virtual machines and have content only scenarios / courses
+ this.noVirtualMachinesNeeded = templates.size == 0;
+
+ if (this.noVirtualMachinesNeeded) {
+ this.noEnvironmentsAvailable = true;
+ this.unavailableVMTs = [];
+ this.availableEnvironments = [];
+ this.checkingEnvironments = false;
+ return;
+ }
+
this.es
.list()
.pipe(
@@ -995,15 +1007,22 @@ export class NewScheduledEventComponent
return true;
}
- //no environment selected
- if (this.selectedEnvironments.length == 0) {
+ //no environment selected but VMs are required
+ if (
+ this.selectedEnvironments.length == 0 &&
+ !this.noVirtualMachinesNeeded
+ ) {
return true;
}
//vm count is valid
if (
- (!this.simpleMode && !this.vmCounts.valid) ||
- (this.simpleMode && !this.simpleModeVmCounts.valid)
+ (!this.simpleMode &&
+ !this.vmCounts.valid &&
+ !this.noVirtualMachinesNeeded) ||
+ (this.simpleMode &&
+ !this.simpleModeVmCounts.valid &&
+ !this.noVirtualMachinesNeeded)
) {
return true;
}
diff --git a/src/app/scenario/scenario-wizard/scenario-wizard.component.html b/src/app/scenario/scenario-wizard/scenario-wizard.component.html
index 571b36d2..8c4e004d 100644
--- a/src/app/scenario/scenario-wizard/scenario-wizard.component.html
+++ b/src/app/scenario/scenario-wizard/scenario-wizard.component.html
@@ -139,15 +139,32 @@
-
+ Virtual Machine
+
+
+
+
+
+ This scenario will be a content-only scenario until you configure a
+ VirtualMachine
+
+
+
+
@@ -158,8 +175,8 @@
>
You have to add virtual Machine in order to create a functional
- scenarioThere are invalid VirtualMachineSets. No Empty VMSets
+ allowed.
@@ -358,6 +375,26 @@
Finalize
Confirm the following details before finishing
Scenario
+
+
+
+
+
+
+ This scenario will be a content-only scenario until you configure a
+ VirtualMachine
+