3 basic ways to use OpenStack interactively when you have a kolla environment
0. prelude
source /etc/kolla/admin-openrc.sh
source /etc/kolla/admin-openrc.sh
1. openstackclient
flavor list
server list
flavor list
server list
2. ansible-console
ansible-console
os_flavor_facts
ansible-console
os_flavor_facts
3. openstacksdk
pip install ipython openstacksdk
ipython
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.
Author And Source
この問題について(3 basic ways to use OpenStack interactively when you have a kolla environment), 我々は、より多くの情報をここで見つけました https://qiita.com/crowdy/items/c1af17f203578e25e547著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .