Documents OpenStack control plane discovery
Change-Id: I51ddb2477fbaa0215d6621f31d0f7189c8350bac
This commit is contained in:
parent
d3d40bc6ae
commit
f414d0acfd
72
doc/source/openstack_resources.rst
Normal file
72
doc/source/openstack_resources.rst
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
=================================
|
||||||
|
OpenStack Control Plane Discovery
|
||||||
|
=================================
|
||||||
|
|
||||||
|
Satori supports :ref:`control plane <terminology_control_plane>` discovery of
|
||||||
|
resources that belong to an OpenStack tenant. To discover OpenStack specific
|
||||||
|
information for a resource, provide credentials to Satori for the tenant that
|
||||||
|
owns the resource.
|
||||||
|
|
||||||
|
|
||||||
|
OpenStack Credentials
|
||||||
|
=====================
|
||||||
|
|
||||||
|
OpenStack credentials can be provided on the command line or injected into
|
||||||
|
shell environment variables. Satori reuses the `OpenStack Nova conventions`_ for
|
||||||
|
environment variables since many Satori users also use the `nova`_ program.
|
||||||
|
|
||||||
|
Use the export command to store the credentials in the shell environment:
|
||||||
|
|
||||||
|
::
|
||||||
|
$ export OS_USERNAME=yourname
|
||||||
|
$ export OS_PASSWORD=yadayadayada
|
||||||
|
$ export OS_TENANT_NAME=myproject
|
||||||
|
$ export OS_AUTH_URL=http://...
|
||||||
|
$ satori foo.com
|
||||||
|
|
||||||
|
Alternatively, the credentials can be passed on the command line:
|
||||||
|
|
||||||
|
::
|
||||||
|
$ satori foo.com \
|
||||||
|
--os-username yourname \
|
||||||
|
--os-password yadayadayada \
|
||||||
|
--os-tenant-name myproject \
|
||||||
|
--os-auth-url http://...
|
||||||
|
|
||||||
|
|
||||||
|
Discovered Host
|
||||||
|
===============
|
||||||
|
|
||||||
|
If the domain name or IP address provided belongs to the authenticated
|
||||||
|
tenant, the OpenStack resource data (Server ID, IPs, etc) will be
|
||||||
|
returned. In this example, the OpenStack credentials were provided via
|
||||||
|
environment variables. The "Host" section is only available because the
|
||||||
|
control plane discovery was possible using the OpenStack credentials.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
$ satori www.foo.com
|
||||||
|
Domain: foo.com
|
||||||
|
Registered at TUCOWS DOMAINS INC.
|
||||||
|
Expires in 475 days.
|
||||||
|
Name servers:
|
||||||
|
DNS1.STABLETRANSIT.COM
|
||||||
|
DNS2.STABLETRANSIT.COM
|
||||||
|
Address:
|
||||||
|
www.foo.com resolves to IPv4 address 192.0.2.10
|
||||||
|
Host:
|
||||||
|
192.0.2.10 (www.foo.com) is hosted on a Nova Instance
|
||||||
|
Instance Information:
|
||||||
|
URI: https://nova.api.somecloud.com/v2/111222/servers/d9119040-f767-414
|
||||||
|
1-95a4-d4dbf452363a
|
||||||
|
Name: sampleserver01.foo.com
|
||||||
|
ID: d9119040-f767-4141-95a4-d4dbf452363a
|
||||||
|
ip-addresses:
|
||||||
|
public:
|
||||||
|
::ffff:404:404
|
||||||
|
192.0.2.10
|
||||||
|
private:
|
||||||
|
10.1.1.156
|
||||||
|
|
||||||
|
.. _nova: https://github.com/openstack/python-novaclient
|
||||||
|
.. _OpenStack Nova conventions: https://github.com/openstack/python-novaclient/blob/master/README.rst#id1
|
@ -7,6 +7,8 @@ Opinions
|
|||||||
|
|
||||||
Opinions are being discussed at https://wiki.openstack.org/wiki/Satori/OpinionsProposal.
|
Opinions are being discussed at https://wiki.openstack.org/wiki/Satori/OpinionsProposal.
|
||||||
|
|
||||||
|
.. _terminology_control_plane:
|
||||||
|
|
||||||
Control Plane Discovery
|
Control Plane Discovery
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user