
This patch adds the ability to specify a net-label instead of using a net-id (network UUID). Rather than use network UUID's in our nodepool.yaml config files it would be nice to use the more meaningful network labels instead. This should make the config file more readable across the various cloud providers and matches how we use image names (instead of image UUIDs) as well. The current implementation relies on the os-tenant-networks extension in Nova to provide the network label lookup. Given that nodepool is currently focused around using novaclient this made the most sense. We may at some point in the future want to use the Neutron API directly for this information or perhaps use a combination of both approaches to accommodate a variety of provider API deployment choices. Tested locally on my TripleO overcloud using two Neutron networks. Change-Id: I9bdd35adf2d85659cf1b992ccd2fcf98fb124528
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
script-dir: .
|
|
dburi: 'mysql://nodepool@localhost/nodepool'
|
|
|
|
cron:
|
|
check: '*/15 * * * *'
|
|
cleanup: '*/1 * * * *'
|
|
image-update: '14 2 * * *'
|
|
|
|
zmq-publishers:
|
|
- tcp://localhost:8881
|
|
|
|
gearman-servers:
|
|
- host: localhost
|
|
|
|
labels:
|
|
- name: nodepool-fake
|
|
image: nodepool-fake
|
|
min-ready: 2
|
|
providers:
|
|
- name: fake-provider
|
|
- name: multi-fake
|
|
image: nodepool-fake
|
|
ready-script: multinode_setup.sh
|
|
subnodes: 2
|
|
min-ready: 2
|
|
providers:
|
|
- name: fake-provider
|
|
|
|
providers:
|
|
- name: fake-provider
|
|
keypair: 'if-present-use-this-keypair'
|
|
username: 'fake'
|
|
password: 'fake'
|
|
auth-url: 'fake'
|
|
project-id: 'fake'
|
|
max-servers: 96
|
|
pool: 'fake'
|
|
networks:
|
|
- net-id: 'some-uuid'
|
|
- net-label: 'some-label'
|
|
images:
|
|
- name: nodepool-fake
|
|
base-image: 'Fake Precise'
|
|
min-ram: 8192
|
|
name-filter: 'Fake'
|
|
setup: prepare_node_devstack.sh
|
|
- name: multi-fake
|
|
subnodes: 2
|
|
base-image: 'Fake Precise'
|
|
min-ram: 8192
|
|
name-filter: 'Fake'
|
|
setup: prepare_node_devstack.sh
|
|
|
|
targets:
|
|
- name: fake-jenkins
|
|
jenkins:
|
|
url: https://jenkins.example.org/
|
|
user: fake
|
|
apikey: fake
|