-
Notifications
You must be signed in to change notification settings - Fork 1.8k
CNV 1.4 Web UI update for VM and Templates #13489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vikram-redhat
merged 1 commit into
openshift:master
from
aburdenthehand:cnv_web_ui_1666251
Feb 22, 2019
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-cloud-init-fields-web]] | ||
| == Cloud-init fields | ||
| |=== | ||
| |Name | Description | ||
|
|
||
| |Hostname | ||
| |Sets a specific hostname for the virtual machine. | ||
|
|
||
| |Authenticated SSH Keys | ||
| |The user's public key. This will be copied to *_~/.ssh/authorized_keys_* on the virtual machine. | ||
|
|
||
| |Use custom script | ||
| |Replaces other options with a textbox into which you can paste a custom cloud-init script. | ||
| |=== | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-creating-template-wizard-web]] | ||
| == Creating a virtual machine template with the interactive wizard | ||
|
|
||
| Virtual machines templates are an easy way to create multiple virtual machines with similar configuration. After a template is created, reference the template when xref:cnv-creating-vm-wizard-web[creating virtual machines]. | ||
|
|
||
| The web console features an interactive wizard that guides you through xref:cnv-template-wizard-fields-web[*Basic Settings*], xref:cnv-networking-wizard-fields-web[*Networking*], and xref:cnv-storage-wizard-fields-web[*Storage*] screens to simplify the process of creating virtual machine templates. All required fields are marked by a `*`. The wizard prevents you from moving to the next screen until the required fields have been completed. | ||
|
|
||
| NICs and storage disks can be created and attached to virtual machines after they have been created. | ||
|
|
||
| .*Bootable Disk* | ||
|
|
||
| If either `URL` or `Container` are selected as the *Provision Source* in the xref:cnv-template-wizard-fields-web[*Basic Settings*] screen, a `rootdisk` disk is created and attached to virtual machines as the *Bootable Disk*. You can modify the `rootdisk` but you cannot remove it. | ||
|
|
||
| A *Bootable Disk* is not required for virtual machines provisioned from a *PXE* source if there are no disks attached to the virtual machine. If one or more disks are attached to the virtual machine, you must select one as the *Bootable Disk*. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machine Templates* from the side menu. | ||
| . Click *Create Template* and select *Create with Wizard*. | ||
| . Fill in all required xref:cnv-template-wizard-fields-web[*Basic Settings*]. | ||
| . Click *Next* to progress to the xref:cnv-networking-wizard-fields-web[*Networking*] screen. An `nic0` NIC is attached by default. | ||
| .. (Optional) Click *Create NIC* to create additional NICs. | ||
| .. (Optional) You can remove any or all NICs by clicking the ⋮ button and selecting *Remove NIC*. Virtual machines created from a template do not need a NIC attached. NICs can be xref:cnv-vm-create-nic-web[created] after a virtual machine has been created. | ||
| . Click *Next* to progress to the xref:cnv-storage-wizard-fields-web[*Storage*] screen. | ||
| .. (Optional) Click *Create Disk* to create additional disks. These disks can be removed by clicking the ⋮ button and selecting *Remove Disk*. | ||
| .. (Optional) Click on a disk to modify available fields. Click the ✓ button to save the update. | ||
| .. (Optional) Click *Attach Disk* to choose an available disk from the *Select Storage* drop-down list. | ||
| . Click *Create Virtual Machine Template >*. The *Results* screen displays the JSON configuration file for the virtual machine template. | ||
|
|
||
| The template is listed in *Workloads* -> *Virtual Machine Templates*. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
|
|
||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-creating-vm-wizard-web]] | ||
| == Creating a virtual machine with the interactive wizard | ||
|
|
||
| The web console features an interactive wizard that guides you through xref:cnv-vm-wizard-fields-web[*Basic Settings*], xref:cnv-networking-wizard-fields-web[*Networking*], and xref:cnv-storage-wizard-fields-web[*Storage*] screens to simplify the process of creating virtual machines. All required fields are marked by a `*`. The wizard prevents you from moving to the next screen until the required fields have been completed. | ||
|
|
||
| NICs and storage disks can be created and attached to virtual machines after they have been created. | ||
|
|
||
| .*Bootable Disk* | ||
|
|
||
| If either `URL` or `Container` are selected as the *Provision Source* in the xref:cnv-vm-wizard-fields-web[*Basic Settings*] screen, a `rootdisk` disk is created and attached to the virtual machine as the *Bootable Disk*. You can modify the `rootdisk` but you cannot remove it. | ||
|
|
||
| A *Bootable Disk* is not required for virtual machines provisioned from a *PXE* source if there are no disks attached to the virtual machine. If one or more disks are attached to the virtual machine, you must select one as the *Bootable Disk*. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machines* from the side menu. | ||
| . Click *Create Virtual Machine* and select *Create with Wizard*. | ||
| . Fill in all required xref:cnv-vm-wizard-fields-web[*Basic Settings*]. Selecting a *Template* automatically fills in these fields. | ||
| . Click *Next* to progress to the xref:cnv-networking-wizard-fields-web[*Networking*] screen. A `nic0` NIC is attached by default. | ||
| .. (Optional) Click *Create NIC* to create additional NICs. | ||
| .. (Optional) You can remove any or all NICs by clicking the ⋮ button and selecting *Remove NIC*. A virtual machine does not need a NIC attached to be created. NICs can be xref:cnv-vm-create-nic-web[created] after the virtual machine has been created. | ||
| . Click *Next* to progress to the xref:cnv-storage-wizard-fields-web[*Storage*] screen. | ||
| .. (Optional) Click *Create Disk* to create additional disks. These disks can be removed by clicking the ⋮ button and selecting *Remove Disk*. | ||
| .. (Optional) Click on a disk to modify available fields. Click the ✓ button to save the update. | ||
| .. (Optional) Click *Attach Disk* to choose an available disk from the *Select Storage* drop-down list. | ||
| . Click *Create Virtual Machine >*. The *Results* screen displays the JSON configuration file for the virtual machine. | ||
|
|
||
| The virtual machine is listed in *Workloads* -> *Virtual Machines*. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-creating-vm-yaml-web]] | ||
| == Creating a virtual machine using a YAML configuration file | ||
|
|
||
| Create a virtual machine by writing or pasting a YAML configuration file in the web console in the *Workloads* -> *Virtual Machines* screen. A valid `example` virtual machine configuration is provided by default whenever you open the YAML edit screen. | ||
|
|
||
| If your YAML configuration is invalid when you click *Create*, an error message indicates the parameter in which the error occurs. Only one error is shown at a time. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| Navigating away from the YAML screen while editing cancels any changes to the configuration you have made. | ||
| ==== | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machines* from the side menu. | ||
| . Click *Create Virtual Machine* and select *Create from YAML*. | ||
| . Write or paste your virtual machine configuration in the editable window. | ||
| .. Alternatively, use the `example` virtual machine provided by default in the YAML screen. | ||
| . (Optional) Click *Download* to download the YAML configuration file in its present state. | ||
| . Click *Create* to create the virtual machine. | ||
|
|
||
| The virtual machine is listed in *Workloads* -> *Virtual Machines*. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-delete-template-web]] | ||
| == Deleting a virtual machine template | ||
|
|
||
| Deleting a virtual machine template permanently removes it from the cluster. | ||
|
|
||
| Delete a virtual machine template using the ⋮ button of the template in the *Workloads* -> *Virtual Machines Templates* list, or using the *Actions* control of the *Virtual Machine Templates Details* screen. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machine Templates* from the side menu. | ||
| . Click the ⋮ button of the template to delete and select *Delete Template*. | ||
| .. Alternatively, click the template name to open the *Virtual Machine Template Details* screen and click *Actions* -> *Delete Template*. | ||
| . In the confirmation pop-up window, click *Delete* to permanently delete the template. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-delete-vm-web]] | ||
| == Deleting a virtual machine | ||
|
|
||
| Deleting a virtual machine permanently removes it from the cluster. | ||
|
|
||
| Delete a virtual machine using the ⋮ button of the virtual machine in the *Workloads* -> *Virtual Machines* list, or using the xref:cnv-vm-actions-web[*Actions* control] of the *Virtual Machine Details* screen. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machines* from the side menu. | ||
| . Click the ⋮ button of the virtual machine to delete and select *Delete Virtual Machine*. | ||
| .. Alternatively, click the virtual machine name to open the *Virtual Machine Details* screen and click *Actions* -> *Delete Virtual Machine*. | ||
| . In the confirmation pop-up window, click *Delete* to permanently delete the virtual machine. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-editing-template-yaml-web]] | ||
| == Editing the YAML of a virtual machine template | ||
|
|
||
| You can edit the YAML configuration of a virtual machine template directly within the web console. | ||
|
|
||
| Not all parameters can be updated. If you edit values that cannot be changed and click *Save*, an error message shows, indicating the parameter that was not able to be updated. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| Navigating away from the YAML screen while editing cancels any changes to the configuration you have made. | ||
| ==== | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machine Template* from the side menu. | ||
| . Select a template. | ||
| . Click the *YAML* tab to display the editable configuration. | ||
| .. (Optional) You can click *Download* to download the YAML file locally in its current state. | ||
| . Edit the file and click *Save*. | ||
|
|
||
| A confirmation message shows the modification has been successful, including the updated version number for the object. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-editing-vm-web]] | ||
| == Editing a virtual machine | ||
|
|
||
| You can edit some values of a virtual machine in the web console, either by editing the xref:cnv-editing-vm-yaml-web[YAML directly], or from the *Virtual Machine Overview* screen. | ||
|
|
||
| When editing from the *Virtual Machine Overview* screen, the virtual machine must be *Off*. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machines* from the side menu. | ||
| . Select a Virtual Machine. | ||
| . Click *Edit* to make editable fields available. | ||
| . You can change the *Flavor* but only to *Custom*, which provides additional fields for *CPU* and *Memory*. | ||
| . Click *Save*. | ||
|
|
||
| The updated values are shown after the operation is processed. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-editing-vm-yaml-web]] | ||
| == Editing the YAML of a virtual machine | ||
|
|
||
| You can edit the YAML configuration of a virtual machine directly within the web console. | ||
|
|
||
| Not all parameters can be updated. If you edit values that cannot be changed and click *Save*, an error message indicates the parameter that was not able to be updated. | ||
|
|
||
aburdenthehand marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| The YAML configuration can be edited while the virtual machine is *Running*, however the changes will only take effect after the virtual machine has been stopped and started again. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| Navigating away from the YAML screen while editing cancels any changes to the configuration you have made. | ||
| ==== | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machine* from the side menu. | ||
| . Select a virtual machine. | ||
| . Click the *YAML* tab to display the editable configuration. | ||
| .. (Optional) You can click *Download* to download the YAML file locally in its current state. | ||
| . Edit the file and click *Save*. | ||
|
|
||
| A confirmation message shows that the modification has been successful, including the updated version number for the object. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-networking-wizard-fields-web]] | ||
| == Networking fields | ||
| |=== | ||
| |Name | Description | ||
|
|
||
| |Create NIC | ||
| |Create a new NIC for the virtual machine. | ||
|
|
||
| |NIC NAME | ||
| |Name for the NIC. | ||
|
|
||
| |MAC ADDRESS | ||
| |MAC address for the network interface. If a MAC address is not specified, an ephemeral address is generated for the session. | ||
aburdenthehand marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| |NETWORK CONFIGURATION | ||
| |List of available *NetworkAttachmentDefinition* objects. | ||
|
|
||
| |PXE NIC | ||
| |List of PXE-capable networks. Only visible if `PXE` has been selected as the `Provision Source`. | ||
| |=== | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * cnv_users_guide/cnv_users_guide.adoc | ||
|
|
||
| [[cnv-restart-vm-web]] | ||
| == Restarting a virtual machine | ||
|
|
||
| A running virtual machines can be xref:cnv-vm-actions-web[restarted] using the ⋮ button of each virtual machine in the *Workloads* -> *Virtual Machines* list. | ||
|
|
||
| These same control operations can be done using the xref:cnv-vm-actions-web[*Actions* control] of the *Virtual Machine Details* screen. | ||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| Do not restart a virtual machine while it has a status of *Importing*. This will result in an error for the virtual machine and is a xref:../cnv_release_notes/cnv_release_notes.adoc#RN_known_issues[known issue]. | ||
| ==== | ||
|
|
||
| .Procedure | ||
|
|
||
| . Click *Workloads* -> *Virtual Machine* from the side menu. | ||
| . Click the ⋮ button of the virtual machine and select *Restart Virtual Machine*. | ||
| .. Alternatively, click the virtual machine name to open the *Virtual Machine Details* screen and click *Actions* and select *Restart Virtual Machine*. | ||
| . In the confirmation pop-up window, click *Restart* to restart the virtual machine. | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.