[airflow] Fix upgrade_airflow_worker.sh
This PS applies a fix for airflow dags state command output filter. Also applied several zuul gates fixes and bumps up kubectl to 1.29.5 due to CVE vulnerability Change-Id: Ic623f27ef8c0f856f2a80ea73fe48c992cd8936b
This commit is contained in:
parent
bd67c08136
commit
fe89b5e0b1
17
.zuul.yaml
17
.zuul.yaml
@ -147,6 +147,7 @@
|
|||||||
required-projects:
|
required-projects:
|
||||||
- name: openstack/openstack-helm
|
- name: openstack/openstack-helm
|
||||||
- name: openstack/openstack-helm-infra
|
- name: openstack/openstack-helm-infra
|
||||||
|
- name: openstack/openstack-helm-plugin
|
||||||
- name: airship/treasuremap
|
- name: airship/treasuremap
|
||||||
override-checkout: v1.9
|
override-checkout: v1.9
|
||||||
irrelevant-files: *irrelevant-files
|
irrelevant-files: *irrelevant-files
|
||||||
@ -171,6 +172,7 @@
|
|||||||
kubeadm:
|
kubeadm:
|
||||||
pod_network_cidr: "10.244.0.0/24"
|
pod_network_cidr: "10.244.0.0/24"
|
||||||
service_cidr: "10.96.0.0/16"
|
service_cidr: "10.96.0.0/16"
|
||||||
|
osh_plugin_repo: "{{ zuul.project.src_dir }}/../../openstack/openstack-helm-plugin"
|
||||||
loopback_setup: true
|
loopback_setup: true
|
||||||
loopback_device: /dev/loop100
|
loopback_device: /dev/loop100
|
||||||
loopback_image: "/opt/ext_vol/openstack-helm/ceph-loop.img"
|
loopback_image: "/opt/ext_vol/openstack-helm/ceph-loop.img"
|
||||||
@ -178,10 +180,11 @@
|
|||||||
kube_version_repo: "v1.29"
|
kube_version_repo: "v1.29"
|
||||||
# the list of k8s package versions are available here
|
# the list of k8s package versions are available here
|
||||||
# https://pkgs.k8s.io/core:/stable:/{{ kube_version_repo }}/deb/Packages
|
# https://pkgs.k8s.io/core:/stable:/{{ kube_version_repo }}/deb/Packages
|
||||||
kube_version: "1.29.2-1.1"
|
kube_version: "1.29.5-1.1"
|
||||||
|
calico_setup: true
|
||||||
calico_version: "v3.27.0"
|
calico_version: "v3.27.0"
|
||||||
coredns_version: "v1.11.1"
|
cilium_setup: false
|
||||||
helm_version: "v3.13.2"
|
helm_version: "v3.14.2"
|
||||||
yq_version: "v4.6.0"
|
yq_version: "v4.6.0"
|
||||||
crictl_version: "v1.26.1"
|
crictl_version: "v1.26.1"
|
||||||
zuul_osh_relative_path: ../../openstack/openstack-helm
|
zuul_osh_relative_path: ../../openstack/openstack-helm
|
||||||
@ -198,10 +201,10 @@
|
|||||||
parent: shipyard-base
|
parent: shipyard-base
|
||||||
vars:
|
vars:
|
||||||
site: airskiff
|
site: airskiff
|
||||||
HELM_ARTIFACT_URL: https://get.helm.sh/helm-v3.13.2-linux-amd64.tar.gz
|
HELM_ARTIFACT_URL: https://get.helm.sh/helm-v3.14.2-linux-amd64.tar.gz
|
||||||
HTK_COMMIT: cfff60ec10a6c386f38db79bb9f59a552c2b032f
|
HTK_COMMIT: 05f2f45971abcf483189358d663e2b46c3fc2fe8
|
||||||
OSH_INFRA_COMMIT: cfff60ec10a6c386f38db79bb9f59a552c2b032f
|
OSH_INFRA_COMMIT: 05f2f45971abcf483189358d663e2b46c3fc2fe8
|
||||||
OSH_COMMIT: 2d9457e34ca4200ed631466bd87569b0214c92e7
|
OSH_COMMIT: 049e679939fbd3b0c659dd0977911b8dc3b5a015
|
||||||
CLONE_SHIPYARD: false
|
CLONE_SHIPYARD: false
|
||||||
DISTRO: ubuntu_focal
|
DISTRO: ubuntu_focal
|
||||||
DOCKER_REGISTRY: localhost:5000
|
DOCKER_REGISTRY: localhost:5000
|
||||||
|
@ -49,7 +49,7 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
ARG ctx_base=src/bin
|
ARG ctx_base=src/bin
|
||||||
|
|
||||||
# Kubectl version
|
# Kubectl version
|
||||||
ARG KUBECTL_VERSION=1.29.2
|
ARG KUBECTL_VERSION=1.29.5
|
||||||
|
|
||||||
# Needed from apache-airflow 1.10.2, since core.airflow_home config is deprecated
|
# Needed from apache-airflow 1.10.2, since core.airflow_home config is deprecated
|
||||||
ENV AIRFLOW_HOME=${AIRFLOW_HOME}
|
ENV AIRFLOW_HOME=${AIRFLOW_HOME}
|
||||||
|
@ -69,7 +69,7 @@ do
|
|||||||
|
|
||||||
# We will need to extract the last word in the 'check_dag_state'
|
# We will need to extract the last word in the 'check_dag_state'
|
||||||
# string variable as that will contain the status of the dag run
|
# string variable as that will contain the status of the dag run
|
||||||
dag_state=$(echo ${check_dag_state} | awk '{print $NF}')
|
dag_state=$(echo ${check_dag_state} | awk -F ',' '{print $1}')
|
||||||
echo -e ${dag_state} >> /usr/local/airflow/upgrade_airflow_worker.log
|
echo -e ${dag_state} >> /usr/local/airflow/upgrade_airflow_worker.log
|
||||||
|
|
||||||
if [[ $dag_state == "success" ]]; then
|
if [[ $dag_state == "success" ]]; then
|
||||||
|
@ -300,7 +300,7 @@ class ShipyardPolicy(object):
|
|||||||
policy.DocumentedRuleDefault(
|
policy.DocumentedRuleDefault(
|
||||||
ACTION_TEST_SITE,
|
ACTION_TEST_SITE,
|
||||||
RULE_ADMIN_REQUIRED,
|
RULE_ADMIN_REQUIRED,
|
||||||
'Create a workflow action to invoke Helm tests on all releases ' \
|
'Create a workflow action to invoke Helm tests on all releases '
|
||||||
'or a targeted release',
|
'or a targeted release',
|
||||||
[{
|
[{
|
||||||
'path': '/api/v1.0/actions',
|
'path': '/api/v1.0/actions',
|
||||||
|
@ -18,11 +18,11 @@
|
|||||||
roles:
|
roles:
|
||||||
- ensure-python
|
- ensure-python
|
||||||
- ensure-pip
|
- ensure-pip
|
||||||
- ensure-tox
|
|
||||||
- clear-firewall
|
- clear-firewall
|
||||||
- deploy-apparmor
|
- deploy-apparmor
|
||||||
- deploy-selenium
|
- deploy-selenium
|
||||||
- deploy-env
|
- deploy-env
|
||||||
|
- ensure-tox
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install Packaging python module for tools/airship
|
- name: Install Packaging python module for tools/airship
|
||||||
|
Loading…
x
Reference in New Issue
Block a user