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

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

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

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

felix001 gravatar image

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

edit flag offensive delete link more


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 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 70 times

Last updated: Sep 19 '17