
NOTE: This has become a monolithic commit to get gate settings/scripts in place for CI - Add Makefile with UCP standard entrypoints - Move Dockerfile into images/drydock per UCP standards - Add values.yaml entries for uWSGI threads and workers - Add environment variables to chart Deployment manifest for uWSGI thread and workers - Add threads and workers specification to uWSGI commandline in entrypoint - Test that the Drydock API is responding - Test that the Drydock API rejects noauth requests - Fix Makefile utility script to work behind a proxy Correct task success voting Some tasks were incorrectly considered partial_success even when no failure occurred. - Network configuration erroneously marked messages as errors - Update result propagation logic to only use the latest retry The deploy_nodes task ended as incomplete due to a missing subtask assignment Also added a node check step to prepare_nodes so that nodes that are already under provisioner control (MaaS) are not IPMI-rebooted. Tangential changes: - added config item to for leadership claim interval - added some debug logging to bootaction_report task - fix tasks list API endpoint to generate valid JSON Improve task concurrency When tasks are started with a scope of multiple nodes, split the main task so each node is managed independently to de-link the progression of nodes. - Split the prepare_nodes task - Begin reducing cyclomatic complexity to allow for better unit testing - Improved tox testing to include coverage by default - Include postgresql integration tests in coverage Closes #73 Change-Id: I600c2a4db74dd42e809bc3ee499fb945ebdf31f6
66 lines
1.7 KiB
Bash
Executable File
66 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2017 AT&T Intellectual Property. All other rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# Script to setup helm-toolkit and helm dep up the shipyard chart
|
|
#
|
|
HELM=$1
|
|
HTK_REPO=${HTK_REPO:-"https://github.com/openstack/openstack-helm"}
|
|
HTK_PATH=${HTK_PATH:-""}
|
|
DEP_UP_LIST=${DEP_UP_LIST:-"drydock"}
|
|
|
|
if [[ ! -z $(echo $http_proxy) ]]
|
|
then
|
|
export no_proxy=$no_proxy,127.0.0.1
|
|
fi
|
|
|
|
set -x
|
|
|
|
function helm_serve {
|
|
if [[ -d "$HOME/.helm" ]]; then
|
|
echo ".helm directory found"
|
|
else
|
|
${HELM} init --client-only
|
|
fi
|
|
if [[ -z $(curl -s 127.0.0.1:8879 | grep 'Helm Repository') ]]; then
|
|
${HELM} serve & > /dev/null
|
|
while [[ -z $(curl -s 127.0.0.1:8879 | grep 'Helm Repository') ]]; do
|
|
sleep 1
|
|
echo "Waiting for Helm Repository"
|
|
done
|
|
else
|
|
echo "Helm serve already running"
|
|
fi
|
|
|
|
if ${HELM} repo list | grep -q "^stable" ; then
|
|
${HELM} repo remove stable
|
|
fi
|
|
|
|
${HELM} repo add local http://localhost:8879/charts
|
|
}
|
|
|
|
mkdir -p build
|
|
pushd build
|
|
git clone --depth 1 $HTK_REPO || true
|
|
pushd openstack-helm/$HTK_PATH
|
|
|
|
git pull
|
|
helm_serve
|
|
make helm-toolkit
|
|
popd && popd
|
|
for c in $DEP_UP_LIST
|
|
do
|
|
${HELM} dep up charts/$c
|
|
done
|