Static

The static provider reuses already available resources (machines, network) to deploy OpenStack on.

Installation

Refer to the Getting Started section to install Enos. Then do:

$ enos new --provider=static
$ enos deploy

Configuration

The static provider requires already running resources to deploy OpenStack on. Information in the provider description tells Enos where these resources are and how to access to them.

The following shows an example of possible description. It can serve as basis to build your own configuration that will fit your environment.

 1enable_monitoring: false
 2hosts:
 3  1: &id002
 4    address: 192.168.142.245
 5    alias: enos-0
 6    keyfile: .vagrant/machines/enos-0/libvirt/private_key
 7    user: root
 8  2: &id003
 9    address: 192.168.142.244
10    alias: enos-1
11    keyfile: .vagrant/machines/enos-1/libvirt/private_key
12    user: root
13  3: &id001
14    address: 192.168.142.243
15    alias: enos-2
16    keyfile: .vagrant/machines/enos-2/libvirt/private_key
17    user: root
18inventory: inventories/inventory.sample
19kolla:
20  kolla_base_distro: centos
21  kolla_install_type: source
22  nova_compute_virt_type: qemu
23provider:
24  networks:
25  - cidr: 192.168.142.0/24
26    dns: 8.8.8.8
27    end: 192.168.142.119
28    gateway: 192.168.142.1
29    roles:
30    - network_interface
31    start: 192.168.142.3
32  - cidr: 192.168.143.0/24
33    dns: 8.8.8.8
34    end: 192.168.143.119
35    gateway: 192.168.143.1
36    roles:
37    - neutron_external_interface
38    start: 192.168.143.3
39  type: static
40registry:
41  type: none
42resources:
43  compute:
44  - *id001
45  control:
46  - *id002
47  network:
48  - *id003

Note that the above example is based on running machines given by vagrant and the libvirt provider following this Vagrantfile

In the resources there must be at least one host entry for each of the following names:

  • control

  • compute

  • network

In the networks section of the provider, a network with role network_interface must be define. For more information on network roles please refer to the kolla documentation.