How to change the flavor setting using the CLI
Issue
-
Can not change
Publicsetting for flavor with CLI- Created public flavor with the following comand and set it only for
project1but 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
project1can use. - When checking the details on the screen, the status of
publicchanged 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 listcommand usingkeystonerc_adminwhich 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
adminproject 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.