Add files for zuul-nodepool integration test
This adds config files and a startup script. Remove the nodepool.yaml .gitignore. Change-Id: Icc58521f520f719f24f59132c424b3a71432285f
This commit is contained in:
parent
01b31a4d74
commit
7274778c11
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,6 +12,5 @@ doc/build/*
|
||||
zuul/versioninfo
|
||||
dist/
|
||||
venv/
|
||||
nodepool.yaml
|
||||
*~
|
||||
.*.swp
|
||||
|
48
tools/zuul-nodepool-integration/builder-logging.conf
Normal file
48
tools/zuul-nodepool-integration/builder-logging.conf
Normal file
@ -0,0 +1,48 @@
|
||||
[loggers]
|
||||
keys=root,nodepool,requests,shade
|
||||
|
||||
[handlers]
|
||||
keys=console,normal
|
||||
|
||||
[formatters]
|
||||
keys=simple
|
||||
|
||||
[logger_root]
|
||||
level=WARNING
|
||||
handlers=console
|
||||
|
||||
[logger_requests]
|
||||
level=WARNING
|
||||
handlers=normal
|
||||
qualname=requests
|
||||
|
||||
[logger_shade]
|
||||
level=WARNING
|
||||
handlers=normal
|
||||
qualname=shade
|
||||
|
||||
[logger_gear]
|
||||
level=DEBUG
|
||||
handlers=normal
|
||||
qualname=gear
|
||||
|
||||
[logger_nodepool]
|
||||
level=DEBUG
|
||||
handlers=normal
|
||||
qualname=nodepool
|
||||
|
||||
[handler_console]
|
||||
level=WARNING
|
||||
class=StreamHandler
|
||||
formatter=simple
|
||||
args=(sys.stdout,)
|
||||
|
||||
[handler_normal]
|
||||
level=DEBUG
|
||||
class=FileHandler
|
||||
formatter=simple
|
||||
args=('/tmp/nodepool/log/nodepool-builder.log',)
|
||||
|
||||
[formatter_simple]
|
||||
format=%(asctime)s %(levelname)s %(name)s: %(message)s
|
||||
datefmt=
|
48
tools/zuul-nodepool-integration/launcher-logging.conf
Normal file
48
tools/zuul-nodepool-integration/launcher-logging.conf
Normal file
@ -0,0 +1,48 @@
|
||||
[loggers]
|
||||
keys=root,nodepool,requests,shade
|
||||
|
||||
[handlers]
|
||||
keys=console,normal
|
||||
|
||||
[formatters]
|
||||
keys=simple
|
||||
|
||||
[logger_root]
|
||||
level=WARNING
|
||||
handlers=console
|
||||
|
||||
[logger_requests]
|
||||
level=WARNING
|
||||
handlers=normal
|
||||
qualname=requests
|
||||
|
||||
[logger_shade]
|
||||
level=WARNING
|
||||
handlers=normal
|
||||
qualname=shade
|
||||
|
||||
[logger_gear]
|
||||
level=DEBUG
|
||||
handlers=normal
|
||||
qualname=gear
|
||||
|
||||
[logger_nodepool]
|
||||
level=DEBUG
|
||||
handlers=normal
|
||||
qualname=nodepool
|
||||
|
||||
[handler_console]
|
||||
level=WARNING
|
||||
class=StreamHandler
|
||||
formatter=simple
|
||||
args=(sys.stdout,)
|
||||
|
||||
[handler_normal]
|
||||
level=DEBUG
|
||||
class=FileHandler
|
||||
formatter=simple
|
||||
args=('/tmp/nodepool/log/nodepool-launcher.log',)
|
||||
|
||||
[formatter_simple]
|
||||
format=%(asctime)s %(levelname)s %(name)s: %(message)s
|
||||
datefmt=
|
32
tools/zuul-nodepool-integration/nodepool.yaml
Normal file
32
tools/zuul-nodepool-integration/nodepool.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
images-dir: /tmp/nodepool/images
|
||||
|
||||
zookeeper-servers:
|
||||
- host: localhost
|
||||
|
||||
diskimages:
|
||||
- name: fake-nodepool
|
||||
elements:
|
||||
- fedora
|
||||
- vm
|
||||
release: 21
|
||||
env-vars:
|
||||
TMPDIR: /opt/dib_tmp
|
||||
DIB_IMAGE_CACHE: /opt/dib_cache
|
||||
DIB_CLOUD_IMAGES: http://download.fedoraproject.org/pub/fedora/linux/releases/test/21-Beta/Cloud/Images/x86_64/
|
||||
BASE_IMAGE_FILE: Fedora-Cloud-Base-20141029-21_Beta.x86_64.qcow2
|
||||
|
||||
labels:
|
||||
- name: fake-label
|
||||
image: fake-nodepool
|
||||
min-ready: 2
|
||||
providers:
|
||||
- name: fake-provider
|
||||
|
||||
providers:
|
||||
- name: fake-provider
|
||||
max-servers: 96
|
||||
auth-url: 'fake'
|
||||
images:
|
||||
- name: fake-nodepool
|
||||
min-ram: 8192
|
||||
diskimage: fake-nodepool
|
2
tools/zuul-nodepool-integration/secure.conf
Normal file
2
tools/zuul-nodepool-integration/secure.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[database]
|
||||
dburi=mysql+pymysql://nodepool@localhost/nodepool
|
9
tools/zuul-nodepool-integration/start.sh
Executable file
9
tools/zuul-nodepool-integration/start.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
mkdir -p /tmp/nodepool/images
|
||||
mkdir -p /tmp/nodepool/log
|
||||
|
||||
nodepool-builder -c `pwd`/nodepool.yaml -l `pwd`/builder-logging.conf -p /tmp/nodepool/builder.pid --fake
|
||||
nodepoold -c `pwd`/nodepool.yaml -s `pwd`/secure.conf -l `pwd`/launcher-logging.conf -p /tmp/nodepool/launcher.pid
|
Loading…
Reference in New Issue
Block a user