Files
deb-python-openstacksdk/doc/source/users/guides/compute.rst
Everett Toews 96962486aa s/stackforge/openstack/
The project moved from stackforge to openstack.

Change-Id: I7271363abcdbab92c6df723ef5294db0fd5c1e24
2015-10-19 22:27:16 -05:00

2.0 KiB

Using OpenStack Compute

Before working with the Compute service, you'll need to create a connection to your OpenStack cloud by following the connect user guide. This will provide you with the conn variable used in the examples below.

Table of Contents

The primary resource of the Compute service is the server.

List Servers

A server is a virtual machine that provides access to a compute instance being run by your cloud provider.

../examples/compute/list.py

Full example: compute resource list

List Images

An image is the operating system you want to use for your server.

../examples/compute/list.py

Full example: compute resource list

List Flavors

A flavor is the resource configuration for a server. Each flavor is a unique combination of disk, memory, vCPUs, and network bandwidth.

../examples/compute/list.py

Full example: compute resource list

List Networks

A network provides connectivity to servers.

../examples/network/list.py

Full example: network resource list

Create Server

At minimum, a server requires a name, an image, a flavor, and a network on creation. Once you've discovered these attributes by listing them as above, you can create a server.

Servers take time to boot so we call wait_for_server to wait for it to become active.

../examples/compute/create.py

Full example: compute resource create