Merge "Add Armada job for testing update of release uuids"

This commit is contained in:
Zuul 2019-02-04 22:42:25 +00:00 committed by Gerrit Code Review
commit ada418f756
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