How to change the flavor setting using the CLI
Issue
-
Can not change
Public
setting for flavor with CLI- Created public flavor with the following comand and set it only for
project1
but the flavor is available for all projects.
openstack flavor create --ram 2048 --disk 20 --ephemeral 10 --swap 2 --vcpus 1 test_flavor nova flavor-access-add test_flavor project1
- When changing privileges using the GUI, we could change so that only
project1
can use. - When checking the details on the screen, the status of
public
changed toYes
→No
. - Is there a way to change the permissions of the flavor using the CLI?
- Created public flavor with the following comand and set it only for
-
How to check all the flavors with CLI
-
On dashboard, after logging in as admin user, you can see the list of flavors of all projects in
admin
→System
→Flavors
, but can not be checked with CLI.
(Ranopenstack flavor list
command usingkeystonerc_admin
which is created after installing PackStack.) -
keystonerc_admin
unset OS_SERVICE_TOKEN export OS_USERNAME=admin export OS_PASSWORD=admin export OS_AUTH_URL=http://10.246.71.3:5000/v2.0 export PS1='[\u@\h \W(keystone_admin)]\$ ' export OS_TENANT_NAME=admin export OS_REGION_NAME=RegionOne
- As for the result, only the flavor that can be used in the
admin
project is confirmed. - How to check the flavor list of all projects?
-
Environment
- Red Hat OpenStack Platform 8.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.