Ask Your Question

connection to openstack cloud

asked 2018-12-06 03:58:51 -0500

najeh gravatar image

After the installation of openstack(one controller and two compute nodes with basic services(keystone,glance, nova, neutron, dashboard) how can i connect to openstack cloud to run programs ? from where can i run a python program file ? where should i install openstacksdk ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-12-06 04:39:17 -0500

To manage the cloud's resources (instances, networks, volumes, ...), use the web browser and point it to the URL on the controller configured for Horizon. Or install the openstack client and configure the OS_... variables (you can generate an RC file from Horizon).

To access instances, use floating IPs.

You can run a Python program from anywhere Python is installed. For a start, run it on the controller.

Install the OpenStack SDK on the systems where you want to run Python programs that manage cloud resources.

If you share what exactly you want to accomplish with your cloud, I or other people can comment more.

edit flag offensive delete link more


i would like to use OpenStack API to manage all cloud resources.

I use network option 1 in my installation, so i have just provider_network without floating IP. I can access instances directly.

najeh gravatar imagenajeh ( 2018-12-06 05:16:59 -0500 )edit

So, should i write and run the python program in the controller node and install the openstacksdk on the controller node also ?

najeh gravatar imagenajeh ( 2018-12-06 05:17:18 -0500 )edit

As you like. You can install it anywhere, as long as there is network connectivity to the cloud.

Imagine your cloud is a public cloud. Users can't log on to the controller, they must manage their cloud resources from elsewhere.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-06 05:39:02 -0500 )edit

after the installation of the openstacksdk how can i configure the environment to use the SDK.

najeh gravatar imagenajeh ( 2018-12-06 05:58:48 -0500 )edit

You don't configure the environment to use the SDK. You write programs that use the SDK:

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-06 06:26:28 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-12-06 03:58:51 -0500

Seen: 121 times

Last updated: Dec 06 '18