Skip to content

Latest commit

 

History

History
54 lines (28 loc) · 4.52 KB

File metadata and controls

54 lines (28 loc) · 4.52 KB

Import VM

Note: This design has been updated and merged into the OpenShift Design repository.

Provision Source Import

Virtual machines can be imported from a curated list of supported providers.

VMware vCenter

Click Provider

The user chooses Import as the Provision Source and then selects VMware as the Provider.

Click vCenter instance

If VMware is chosen, a new "vCenter instance" field appears. The user clicks it to see a list of previously-connected vCenter instances that have been stored as Kubernetes Secrets. The user selects one.

Note: There could be thousands of VMs in this list. Depending on technical constraints, this UI could either include a PatternFly 3 TypeAhead Select component, the PatternFly 4 equivalent, or a text input with a button to check if there’s a single identical match within vCenter. Options are still being explored.

VMware provider default

When a vCenter instance is selected, the first (alphabetical) virtual machine along with its OS, Flavor, and Workload Profile are automatically selected and filled in but remain disabled.

VMware provider credential error

If the wizard cannot connect to the vCenter instance using the credentials stored within its Secret, an error message will be displayed. The user will need to fix the Secret’s credentials before continuing.

Connecting to new VMware vCenter instance

The user can also connect to a new vCenter instance by clicking Connect to new instance from within the dropdown.

Checking new VMware vCenter credentials

ℹ️ vCenter URL: Enter the URL address of the vCenter Server. ℹ️ vCenter Username: Enter your vCenter username. You will only be able to import virtual machines that are available to this username.

New fields for vCenter URL, vCenter Username, vCenter Password, and VM to import appear along with a checkbox to "Remember vCenter credentials" that is unchecked by default.

The vCenter URL field should include a syntax hint with the desired formatting. The user is likely to paste a variety of URLs, so any FQDN the user submits should be validated and automatically corrected before being used to communicate with vCenter’s API.

When the user clicks the "Check" button a text string appears below the button with a spinner to indicate that the credentials are being checked.

If the wizard fails to connect to vCenter using the provided credentials, an error similar to the one above for an invalid vCenter instance should be displayed directly below the vCenter Password field.

VMware vCenter credentials valid

If the connection to vCenter succeeds, the first (alphabetical) VM along with its OS, Flavor, and Workload Profile are automatically selected and filled in as usual. The "Remember vCenter credentials" checkbox also becomes enabled to allow the user to save them as a new Kubernetes Secret.

With the target virtual machine selected, the user can either quickly skip to Step 5 "Review" by clicking the "Import Virtual Machine" secondary action button, or click "Next" to proceed through the rest of the wizard.

Import notification

As soon as the import process begins an informational toast notification should let the user know that the virtual machine is being imported. The virtual machine should appear within the list with a status of "Importing". Hovering the status will display a tooltip with the current progress. Clicking the status will open the virtual machine’s Events page.