Ask Your Question
0

connection to openstack cloud

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

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
1

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

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

Comments

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

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

You don't configure the environment to use the SDK. You write programs that use the SDK: https://docs.openstack.org/openstacks....

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-06 06:26:28 -0600 )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: 2018-12-06 03:58:51 -0600

Seen: 29 times

Last updated: Dec 06