Add Armada job for testing update of release uuids

This adds both a periodic and experimental job for deploying Ceph
and the LMA components via Armada. This job will then generate a
new release uuid, render an updated manifest for all previously
deployed releases, then apply that manifest to validate the
ability for all deployed charts to update successfully with the
new release uuid annotation

Change-Id: Ic1eed1bd949279f4630fb3964fbb03788536213c
This commit is contained in:
Steve Wilkerson 2019-02-02 16:58:11 -06:00
parent 12529ddf0a
commit 8361b74926
5 changed files with 74 additions and 1 deletions

View File

@ -26,6 +26,9 @@
- armada-cluster-ingress
- armada-ceph
- armada-lma
- updated-armada-cluster-ingress
- updated-armada-ceph
- updated-armada-lma
args:
executable: /bin/bash
ignore_errors: True

View File

@ -0,0 +1,46 @@
#!/bin/bash
# Copyright 2017 The Openstack-Helm Authors.
#
# 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.
set -xe
# NOTE(srwilkers): sexport all passwords and environment variables used in the original
# manifests
while read -r line; do $line; done < /tmp/osh-infra-passwords.env
: ${OSH_INFRA_PATH:="../openstack-helm-infra"}
: ${OSH_PATH:="./"}
export CEPH_NETWORK=$(./tools/deployment/multinode/kube-node-subnet.sh)
export CEPH_FS_ID="$(cat /tmp/ceph-fs-uuid.txt)"
export RELEASE_UUID=$(uuidgen)
export TUNNEL_DEVICE=$(ip -4 route list 0/0 | awk '{ print $5; exit }')
export OSH_INFRA_PATH
export OSH_PATH
# NOTE(srwilkers): We add this here due to envsubst expanding the ${tag} placeholder in
# fluentd's configuration. This ensures the placeholder value gets rendered appropriately
export tag='${tag}'
manifests="armada-cluster-ingress armada-ceph armada-lma"
for manifest in $manifests; do
echo "Rendering updated-$manifest manifest"
envsubst < ./tools/deployment/armada/manifests/$manifest.yaml > /tmp/updated-$manifest.yaml
echo "Validating updated-$manifest manifest"
armada validate /tmp/updated-$manifest.yaml
echo "Applying updated-$manifest manifest"
armada apply /tmp/updated-$manifest.yaml
done

View File

@ -191,7 +191,6 @@ data:
labels:
release_group: osh-infra-osh-infra-ldap
values:
release_uuid: ${RELEASE_UUID}
labels:
server:
node_selector_key: openstack-control-plane

View File

@ -296,6 +296,29 @@
- ./tools/deployment/armada/025-armada-validate-manifests.sh
- ./tools/deployment/armada/030-armada-apply-manifests.sh
- job:
name: openstack-helm-infra-armada-update-uuid
parent: openstack-helm-infra-functional
nodeset: openstack-helm-five-node-ubuntu
timeout: 7200
pre-run:
- playbooks/osh-infra-upgrade-host.yaml
- playbooks/osh-infra-deploy-docker.yaml
- playbooks/osh-infra-build.yaml
- playbooks/osh-infra-deploy-k8s.yaml
run: playbooks/osh-infra-gate-runner.yaml
post-run:
- playbooks/osh-infra-collect-logs.yaml
- playbooks/gather-armada-manifests.yaml
vars:
gate_scripts:
- ./tools/deployment/armada/010-armada-host-setup.sh
- ./tools/deployment/armada/015-armada-build.sh
- ./tools/deployment/armada/020-armada-render-manifests.sh
- ./tools/deployment/armada/025-armada-validate-manifests.sh
- ./tools/deployment/armada/030-armada-apply-manifests.sh
- ./tools/deployment/armada/035-armada-update-uuids.sh
- job:
name: openstack-helm-infra-airship-divingbell
parent: openstack-helm-infra

View File

@ -41,6 +41,7 @@
- openstack-helm-infra-tenant-ceph
- openstack-helm-infra-five-ubuntu
- openstack-helm-infra-armada-deploy
- openstack-helm-infra-armada-update-uuid
experimental:
jobs:
#NOTE(srwilkers): Disable fedora experimental jobs until issues resolved
@ -49,3 +50,4 @@
#- openstack-helm-infra-five-centos
- openstack-helm-infra-elastic-beats
- openstack-helm-infra-armada-deploy
- openstack-helm-infra-armada-update-uuid