Ask Your Question
0

How can I invoke the cli command in other host machine?

asked 2017-09-19 01:03:32 -0500

liaodalin19903 gravatar image

I installed the openstack cloud in three host machine, I can execute the follow command in the controller nodes:

 keystone tenant-create --name=openstackteam --description="openstack team tenant"

But I am writing a project that using openstacksdk to interact with my openstack cloud.

such as, I want to use the keystone create tenant command method to create the project and user, how can I do that in my python project(using openstacksdk).

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-19 19:07:12 -0500

felix001 gravatar image

Just ensure you source the nessecary adminrc or <project>rc files.

edit flag offensive delete link more

Comments

Please notice I want in the python project to execute it, because the python project and the openstack cloud are in different host machines.

liaodalin19903 gravatar imageliaodalin19903 ( 2017-09-19 21:41:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-09-19 01:03:32 -0500

Seen: 35 times

Last updated: Sep 19 '17