[zuul] Move logs playbook to post-run
If testing playbooks fail, logs won't be collected. We need to gather logs regardless of the job's result. + change StorageClassName to "standard" Change-Id: I5eb5a5cef6e63df72a2ff8092d1d8fc756c9a692 Change-Id: I178291863c2c1b385825a51b5e16cd230180578d
This commit is contained in:
parent
4de1d0d491
commit
755e8e5c6f
@ -19,8 +19,8 @@
|
||||
set -xe
|
||||
|
||||
: "${INSTALL_PATH:="../"}"
|
||||
: "${OSH_COMMIT:="884a734833cb69a933416d7a04db25581097673c"}"
|
||||
: "${OSH_INFRA_COMMIT:="3d8935a536faaa87e084e7783ed53f4660a3a1f8"}"
|
||||
: "${OSH_COMMIT:="2d9457e34ca4200ed631466bd87569b0214c92e7"}"
|
||||
: "${OSH_INFRA_COMMIT:="cfff60ec10a6c386f38db79bb9f59a552c2b032f"}"
|
||||
: "${CLONE_ARMADA:=false}"
|
||||
: "${CLONE_DECKHAND:=false}"
|
||||
: "${CLONE_SHIPYARD:=false}"
|
||||
|
@ -26,9 +26,13 @@ secrets:
|
||||
mariadb:
|
||||
backup_restore: mariadb-backup-restore
|
||||
manifests:
|
||||
cron_job_mariadb_backup: true
|
||||
secret_backup_restore: true
|
||||
pvc_backup: true
|
||||
cron_job_mariadb_backup: true
|
||||
secret_backup_restore: true
|
||||
pvc_backup: true
|
||||
volume:
|
||||
class_name: standard
|
||||
backup:
|
||||
class_name: standard
|
||||
EOF
|
||||
|
||||
export HELM_CHART_ROOT_PATH="${HELM_CHART_ROOT_PATH:="${OSH_INFRA_PATH:="../openstack-helm-infra"}"}"
|
||||
|
@ -17,7 +17,29 @@ CURRENT_DIR="$(pwd)"
|
||||
|
||||
# Deploy postgresql server
|
||||
cd "${OSH_INFRA_PATH}"
|
||||
bash -c "./tools/deployment/common/postgresql.sh"
|
||||
# bash -c "./tools/deployment/common/postgresql.sh"
|
||||
|
||||
#NOTE: Lint and package chart
|
||||
make postgresql
|
||||
|
||||
#NOTE: Deploy command
|
||||
: ${OSH_INFRA_EXTRA_HELM_ARGS:=""}
|
||||
: ${OSH_INFRA_EXTRA_HELM_ARGS_POSTGRESQL:="$(./tools/deployment/common/get-values-overrides.sh postgresql)"}
|
||||
|
||||
helm upgrade --install postgresql ./postgresql \
|
||||
--namespace=osh-infra \
|
||||
--set monitoring.prometheus.enabled=true \
|
||||
--set storage.pvc.size=1Gi \
|
||||
--set storage.pvc.enabled=true \
|
||||
--set pod.replicas.server=1 \
|
||||
--set storage.pvc.class_name=standard \
|
||||
--set storage.archive_pvc.class_name=standard \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS} \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS_POSTGRESQL}
|
||||
|
||||
#NOTE: Wait for deploy
|
||||
./tools/deployment/common/wait-for-pods.sh osh-infra
|
||||
|
||||
bash -c "./tools/deployment/common/020-ingress.sh"
|
||||
# Deploy postgresql-utility
|
||||
cd ${CURRENT_DIR}
|
||||
|
@ -32,6 +32,3 @@
|
||||
failed_when: result.failed
|
||||
- debug:
|
||||
var: result
|
||||
|
||||
- name: Include collecting running logs
|
||||
import_playbook: airship-porthole-collect-logs.yaml
|
||||
|
@ -163,16 +163,17 @@
|
||||
chdir: ../porthole
|
||||
|
||||
- job:
|
||||
name: airship-porthole-deploy-functional-tests-ubuntu_focal
|
||||
description: |
|
||||
Deploys all UC's and Executes functional tests on focal.
|
||||
name: airship-porthole-deploy-functional-tests
|
||||
abstract: true
|
||||
description: Deploys all UC's and Executes functional tests
|
||||
nodeset: airship-porthole-focal-single-node
|
||||
timeout: 7200
|
||||
run:
|
||||
- tools/gate/playbooks/airship-porthole-gate-runner.yaml
|
||||
- tools/gate/playbooks/make-functional-tests.yaml
|
||||
post-run:
|
||||
- tools/gate/playbooks/airship-porthole-collect-logs.yaml
|
||||
vars:
|
||||
distro_suffix: ubuntu_focal
|
||||
gate_scripts:
|
||||
- ./tools/deployment/005-calicoctl-utility.sh
|
||||
- ./tools/deployment/010-ceph-utility.sh
|
||||
@ -181,39 +182,29 @@
|
||||
- ./tools/deployment/040-mysqlclient-utility.sh
|
||||
- ./tools/deployment/050-openstack-utility.sh
|
||||
- ./tools/deployment/060-postgresql-utility.sh
|
||||
args:
|
||||
chdir: ../porthole
|
||||
|
||||
- job:
|
||||
name: airship-porthole-deploy-functional-tests-ubuntu_focal
|
||||
parent: airship-porthole-deploy-functional-tests
|
||||
vars:
|
||||
distro_suffix: ubuntu_focal
|
||||
osh_params:
|
||||
openstack_release: yoga
|
||||
container_distro_name: ubuntu
|
||||
container_distro_version: focal
|
||||
args:
|
||||
chdir: ../porthole
|
||||
|
||||
|
||||
- job:
|
||||
name: airship-porthole-deploy-functional-tests-ubuntu_bionic
|
||||
description: |
|
||||
Deploys all UC's and Executes functions tests on bionic.
|
||||
nodeset: airship-porthole-focal-single-node
|
||||
timeout: 7200
|
||||
run:
|
||||
- tools/gate/playbooks/airship-porthole-gate-runner.yaml
|
||||
- tools/gate/playbooks/make-functional-tests.yaml
|
||||
parent: airship-porthole-deploy-functional-tests
|
||||
vars:
|
||||
distro_suffix: ubuntu_bionic
|
||||
gate_scripts:
|
||||
- ./tools/deployment/005-calicoctl-utility.sh
|
||||
- ./tools/deployment/010-ceph-utility.sh
|
||||
- ./tools/deployment/020-compute-utility.sh
|
||||
- ./tools/deployment/030-etcdctl-utility.sh
|
||||
- ./tools/deployment/040-mysqlclient-utility.sh
|
||||
- ./tools/deployment/050-openstack-utility.sh
|
||||
- ./tools/deployment/060-postgresql-utility.sh
|
||||
osh_params:
|
||||
openstack_release: yoga
|
||||
container_distro_name: ubuntu
|
||||
container_distro_version: bionic
|
||||
args:
|
||||
chdir: ../porthole
|
||||
|
||||
|
||||
- secret:
|
||||
name: quay_credentials
|
||||
|
Loading…
x
Reference in New Issue
Block a user