Add py35 gate for ironic-inspector
This patch adds py35 gate for ironic-inspector and also adds support for inspection in python3 environment by rolling out configuration of swift in inspector. Change-Id: I83429a1ba79208245f6c6e1f8b4eb8a16f014868
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This package should be tested under python 3, when the job enables Python 3
|
||||
enable_python3_package ironic-inspector
|
||||
|
||||
IRONIC_INSPECTOR_DEBUG=${IRONIC_INSPECTOR_DEBUG:-True}
|
||||
IRONIC_INSPECTOR_DIR=$DEST/ironic-inspector
|
||||
IRONIC_INSPECTOR_DATA_DIR=$DATA_DIR/ironic-inspector
|
||||
@@ -180,7 +185,10 @@ function configure_inspector {
|
||||
inspector_iniset firewall dnsmasq_interface $IRONIC_INSPECTOR_INTERFACE
|
||||
inspector_iniset database connection `database_connection_url ironic_inspector`
|
||||
|
||||
is_service_enabled swift && configure_inspector_swift
|
||||
# FIXME(ankit) Remove this when swift supports python3
|
||||
if [[ "$USE_PYTHON3" == "False" ]] && is_service_enabled swift; then
|
||||
configure_inspector_swift
|
||||
fi
|
||||
|
||||
iniset "$IRONIC_CONF_FILE" inspector enabled True
|
||||
iniset "$IRONIC_CONF_FILE" inspector service_url $IRONIC_INSPECTOR_URI
|
||||
|
||||
Reference in New Issue
Block a user