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:
ankit
2017-10-25 11:37:02 +00:00
parent 266be2e63d
commit 63c91ba562
8 changed files with 184 additions and 6 deletions

View File

@@ -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