Ask Your Question
1

Can you execute a program on the guest os via openstack API?

asked 2014-01-30 11:20:18 -0500

anonymous user

Anonymous

With the WmWare tools loaded on the guest OS, I can execute any program with a given set of arguments and a username and credentials with the VmWare APIs.

Does openstack have similar capability via an API call?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-01-31 18:35:29 -0500

dzimine gravatar image

updated 2014-01-31 18:37:21 -0500

AFAIK, NO.

You can ssh to the vm via nova cli. (http://docs.openstack.org/user-guide/content/novaclient_commands.html)

But the implementation just defers to local OS ssh client (https://github.com/openstack/python-novaclient/blob/master/novaclient/v1_1/shell.py#L3029-L3065).

There are agents for specific project. There was a discussion about adding the agent library for use by the projects themselves. But I haven't come across an idea of exposing it via API.

You can double-check - ask on openstack-dev list.

edit flag offensive delete link more
0

answered 2014-01-31 18:21:41 -0500

kfox1111 gravatar image

You probably want: http://docs.openstack.org/user-guide/content/user-data.html

But, if you want to do it at any time, then the official API, if you could call it that, is to ssh execute the command on the host.

edit flag offensive delete link more

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

Stats

Asked: 2014-01-30 11:20:18 -0500

Seen: 163 times

Last updated: Jan 31 '14