0. prelude
source /etc/kolla/admin-openrc.sh
1. openstackclient
flavor list
server list
2. ansible-console
ansible-console
os_flavor_facts
3. openstacksdk
pip install ipython openstacksdk
ipython
ref:
https://docs.openstack.org/openstacksdk/latest/user/
import openstack
conn = openstack.connect()
list(conn.compute.flavors())
The End
if you know other ways to do, please share your ideas with us.