Have nl01.o.o manage min-ready of labels

Due to how multiple nodepool-launchers work today, it is possible to
have greater then min-ready of a label. To avoid this, nl01.o.o will
now be the only launcher to send min-ready requests to zookeeper.

Ideally, nodepool will be updated to support shared configuration in
the future.

Change-Id: I1cf0253343a80146f538ca5e4c83bde5c0173be3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-02-08 15:53:37 -05:00
parent b73efaff05
commit 50754ca31d
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
4 changed files with 12 additions and 21 deletions

View File

@ -5,6 +5,9 @@ zookeeper-servers:
- host: nodepool.openstack.org
port: 2181
# NOTE(pabelanger): To avoid a race conditions between multiple launchers, only
# nl01.o.o will manage min-ready of our labels. If nl01.o.o is ever disabled,
# another launcher will need to assume this logic.
labels:
- name: centos-7
min-ready: 1

View File

@ -5,27 +5,23 @@ zookeeper-servers:
- host: nodepool.openstack.org
port: 2181
# NOTE(pabelanger): To avoid a race conditions between multiple launchers, only
# nl01.o.o will manage min-ready of our labels. If nl01.o.o is ever disabled,
# another launcher will need to assume this logic.
labels:
- name: centos-7
min-ready: 1
max-ready-age: 3600
- name: debian-jessie
min-ready: 1
max-ready-age: 3600
- name: fedora-26
min-ready: 1
max-ready-age: 3600
- name: fedora-27
min-ready: 1
max-ready-age: 3600
- name: opensuse-423
min-ready: 1
max-ready-age: 3600
- name: ubuntu-trusty
min-ready: 1
max-ready-age: 3600
- name: ubuntu-xenial
min-ready: 10
max-ready-age: 3600
providers:

View File

@ -5,27 +5,23 @@ zookeeper-servers:
- host: nodepool.openstack.org
port: 2181
# NOTE(pabelanger): To avoid a race conditions between multiple launchers, only
# nl01.o.o will manage min-ready of our labels. If nl01.o.o is ever disabled,
# another launcher will need to assume this logic.
labels:
- name: centos-7
min-ready: 1
max-ready-age: 3600
- name: debian-jessie
min-ready: 1
max-ready-age: 3600
- name: fedora-26
min-ready: 1
max-ready-age: 3600
- name: fedora-27
min-ready: 1
max-ready-age: 3600
- name: opensuse-423
min-ready: 1
max-ready-age: 3600
- name: ubuntu-trusty
min-ready: 1
max-ready-age: 3600
- name: ubuntu-xenial
min-ready: 10
max-ready-age: 3600
providers:

View File

@ -5,27 +5,23 @@ zookeeper-servers:
- host: nodepool.openstack.org
port: 2181
# NOTE(pabelanger): To avoid a race conditions between multiple launchers, only
# nl01.o.o will manage min-ready of our labels. If nl01.o.o is ever disabled,
# another launcher will need to assume this logic.
labels:
- name: centos-7
min-ready: 1
max-ready-age: 3600
- name: debian-jessie
min-ready: 1
max-ready-age: 3600
- name: fedora-26
min-ready: 1
max-ready-age: 3600
- name: fedora-27
min-ready: 1
max-ready-age: 3600
- name: opensuse-423
min-ready: 1
max-ready-age: 3600
- name: ubuntu-trusty
min-ready: 1
max-ready-age: 3600
- name: ubuntu-xenial
min-ready: 10
max-ready-age: 3600
providers: