vmware-archive / photon-controller

Photon Controller
Other
26 stars 3 forks source link

VM Flavors field doesn't populate correctly with custom flavors when creating a virtual machine from the GUI #114

Open mrporcles opened 7 years ago

mrporcles commented 7 years ago

Photon Controller v1.2

How to reproduce:

  1. Create custom flavor -./photon -n flavor create --name tiny-photon-vm --kind "vm" --cost "vm.cpu 1.0 COUNT, vm.memory 2.0 GB, vm.cost 1.0 COUNT"
  2. Flavor is listed in "./photon flavor list" and shown on GUI (See attached screenshot).
  3. Try to create VM from GUI. Only out of the box flavors are shown namely service-master-vm and service-other-vm (See screenshot) screen shot 2017-05-04 at 16 20 21 screen shot 2017-05-04 at 16 20 39
vigie commented 7 years ago

This happens because the 1.2.0 UI only supports the old quota item key of 'vm' and not its replacement 'vm.count', which you are using when creating your custom flavor. The new VM dialog is filtering out your custom flavor as the project has no resource named 'vm.count' so cannot satisfy the flavor.

In 1.2.1 the UI is moving to using the replacement key of vm.count. In the meantime if you create flavors using the old key of 'vm' they will show up in the vm/cluster create dialogs.

vigie commented 7 years ago

@mrporcles actually now I notice that in the create flavor command you used above, you did not specify 'vm.count', but did specify 'vm.cost'. Is that correct? What do you use 'vm.cost' for? When you created the tenant and project, did you do so via the CLI or the UI?