Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

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

Open
mrporcles opened this issue May 4, 2017 · 2 comments

Comments

@mrporcles
Copy link

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
Copy link

vigie commented May 4, 2017

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
Copy link

vigie commented May 4, 2017

@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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants