Add console-log to config-validate

Sadly, I missed this on our previous commit. Also update coverage from
nodepool dsvm job.

Change-Id: I6966957ac8162a588531c38bd69a93fb58a15258
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-05-29 15:29:19 -04:00
parent db7dd563a8
commit 1a804c7859
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
3 changed files with 5 additions and 0 deletions

View File

@ -501,6 +501,9 @@ function start_nodepool {
export STATSD_PORT=8125
run_process statsd "/usr/bin/socat -u udp-recv:$STATSD_PORT -"
# Ensure our configuration is valid.
$NODEPOOL_INSTALL/bin/nodepool -c $NODEPOOL_CONFIG config-validate
run_process nodepool-launcher "$NODEPOOL_INSTALL/bin/nodepool-launcher -c $NODEPOOL_CONFIG -s $NODEPOOL_SECURE -l $NODEPOOL_LOGGING -d"
run_process nodepool-builder "$NODEPOOL_INSTALL/bin/nodepool-builder -c $NODEPOOL_CONFIG -l $NODEPOOL_LOGGING -d"
:

View File

@ -40,6 +40,7 @@ class ConfigValidator:
'min-ram': int,
'flavor-name': str,
'key-name': str,
'console-log': bool,
}
pool_label = v.All(pool_label_main,

View File

@ -32,6 +32,7 @@ providers:
- name: trusty
diskimage: trusty
min-ram: 8192
console-log: True
- name: trusty-2-node
diskimage: trusty
min-ram: 8192