Flavor requirements checks not working correctly for RAM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Expired
|
Medium
|
Unassigned |
Bug Description
The RAM checks always pass because we're comparing GB against MB - the image minimum RAM is returned in GB while the flavour minimum RAM is returned in MB.
Steps to reproduce:
1. Create a new image and set its minimum requirement to 8GB disk, 8GB RAM.
2. Try to launch an instance and select the new image
Actual result:
3. Minimum flavour is set to m1.small even though
Expected result:
3. Flavour should be at least m1.large (using the devstack default flavours) since it offers 80GB disk/8,192 MB, m1.small should be disabled.
If you add some debug statements around the related code, you'll see we're comparing 8 against 512 / 2048 / etc.
https:/
Changed in horizon: | |
assignee: | nobody → Santiago Baldassin (santiago-b-baldassin) |
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
assignee: | Santiago Baldassin (santiago-b-baldassin) → nobody |
I didn't check the details but I suspect this applies to the server side check in https:/ /github. com/openstack/ horizon/ blob/master/ openstack_ dashboard/ dashboards/ project/ instances/ workflows/ create_ instance. py as well because I didn't get an error when I tried to launch the instance with m1.small anyway.
Interestingly it doesn't look like Nova checks the minimum requirements either, as it launched the image successfully (I had set these limits on a tiny cirros image that doesn't actually require them.)