Skip to content

Commit e9c8455

Browse files
committed
Move legacy jobs into tree
This patch moves the legacy ironic-python-agent CI jobs into the tree instead of storing them in openstack-infra/openstack-zuul-jobs to give us control as we migrate the legacy jobs to the new ansible roles. Change-Id: I7f98258589954639fa8187a3fec4a0b9da05915d
1 parent 9ea63a4 commit e9c8455

File tree

30 files changed

+2716
-0
lines changed

30 files changed

+2716
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- hosts: primary
2+
tasks:
3+
4+
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5+
synchronize:
6+
src: '{{ ansible_user_dir }}/workspace/'
7+
dest: '{{ zuul.executor.log_root }}'
8+
mode: pull
9+
copy_links: true
10+
verify_host: true
11+
rsync_opts:
12+
- --include=/logs/**
13+
- --include=*/
14+
- --exclude=*
15+
- --prune-empty-dirs
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
- hosts: all
2+
name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src
3+
from old job gate-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src-ubuntu-xenial
4+
tasks:
5+
6+
- name: Ensure legacy workspace directory
7+
file:
8+
path: '{{ ansible_user_dir }}/workspace'
9+
state: directory
10+
11+
- shell:
12+
cmd: |
13+
set -e
14+
set -x
15+
cat > clonemap.yaml << EOF
16+
clonemap:
17+
- name: openstack-infra/devstack-gate
18+
dest: devstack-gate
19+
EOF
20+
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
21+
git://git.openstack.org \
22+
openstack-infra/devstack-gate
23+
executable: /bin/bash
24+
chdir: '{{ ansible_user_dir }}/workspace'
25+
environment: '{{ zuul | zuul_legacy_vars }}'
26+
27+
- shell:
28+
cmd: |
29+
cat << 'EOF' >> ironic-extra-vars
30+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True"
31+
# Standardize VM size for each supported ramdisk
32+
case "coreos" in
33+
'tinyipa')
34+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384"
35+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa"
36+
;;
37+
'tinyipa256')
38+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256"
39+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa"
40+
;;
41+
'coreos')
42+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280"
43+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos"
44+
;;
45+
# if using a ramdisk without a known good value, use the devstack
46+
# default by not exporting any value for IRONIC_VM_SPECS_RAM
47+
esac
48+
49+
EOF
50+
chdir: '{{ ansible_user_dir }}/workspace'
51+
environment: '{{ zuul | zuul_legacy_vars }}'
52+
53+
- shell:
54+
cmd: |
55+
cat << 'EOF' >> ironic-extra-vars
56+
export DEVSTACK_GATE_TEMPEST_REGEX="ironic"
57+
58+
EOF
59+
chdir: '{{ ansible_user_dir }}/workspace'
60+
environment: '{{ zuul | zuul_legacy_vars }}'
61+
62+
- shell:
63+
cmd: |
64+
cat << 'EOF' >> ironic-vars-early
65+
# use tempest plugin
66+
if [[ "$ZUUL_BRANCH" != "master" ]] ; then
67+
# NOTE(jroll) if this is not a patch against master, then
68+
# fetch master to install the plugin
69+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'"
70+
else
71+
# on master, use the local change, so we can pick up any changes to the plugin
72+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'"
73+
fi
74+
export TEMPEST_CONCURRENCY=1
75+
76+
EOF
77+
chdir: '{{ ansible_user_dir }}/workspace'
78+
environment: '{{ zuul | zuul_legacy_vars }}'
79+
80+
- shell:
81+
cmd: |
82+
set -e
83+
set -x
84+
export PROJECTS="openstack/ironic $PROJECTS"
85+
export PROJECTS="openstack/ironic-lib $PROJECTS"
86+
export PROJECTS="openstack/ironic-python-agent $PROJECTS"
87+
export PROJECTS="openstack/python-ironicclient $PROJECTS"
88+
export PROJECTS="openstack/pyghmi $PROJECTS"
89+
export PROJECTS="openstack/virtualbmc $PROJECTS"
90+
export PYTHONUNBUFFERED=true
91+
export DEVSTACK_GATE_TEMPEST=1
92+
export DEVSTACK_GATE_IRONIC=1
93+
export DEVSTACK_GATE_NEUTRON=1
94+
export DEVSTACK_GATE_VIRT_DRIVER=ironic
95+
export DEVSTACK_GATE_CONFIGDRIVE=1
96+
export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool
97+
export BRANCH_OVERRIDE=default
98+
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
99+
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
100+
fi
101+
102+
if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then
103+
export DEVSTACK_GATE_TLSPROXY=1
104+
fi
105+
106+
if [ "agent_ipmitool" == "pxe_snmp" ] ; then
107+
# explicitly enable pxe_snmp driver
108+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp"
109+
fi
110+
111+
if [ "agent_ipmitool" == "redfish" ] ; then
112+
# When deploying with redfish we need to enable the "redfish"
113+
# hardware type
114+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish"
115+
fi
116+
117+
if [ "partition" == "wholedisk" ] ; then
118+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True"
119+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0"
120+
else
121+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False"
122+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1"
123+
fi
124+
125+
if [ -n "-src" ] ; then
126+
export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1
127+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True"
128+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False"
129+
else
130+
export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0
131+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False"
132+
fi
133+
134+
if [ "bios" == "uefi" ] ; then
135+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi"
136+
fi
137+
138+
export DEVSTACK_PROJECT_FROM_GIT=""
139+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1"
140+
141+
# Ensure the ironic-vars-EARLY file exists
142+
touch ironic-vars-early
143+
# Pull in the EARLY variables injected by the optional builders
144+
source ironic-vars-early
145+
146+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic"
147+
148+
# Ensure the ironic-EXTRA-vars file exists
149+
touch ironic-extra-vars
150+
# Pull in the EXTRA variables injected by the optional builders
151+
source ironic-extra-vars
152+
153+
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
154+
./safe-devstack-vm-gate-wrap.sh
155+
executable: /bin/bash
156+
chdir: '{{ ansible_user_dir }}/workspace'
157+
environment: '{{ zuul | zuul_legacy_vars }}'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- hosts: primary
2+
tasks:
3+
4+
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5+
synchronize:
6+
src: '{{ ansible_user_dir }}/workspace/'
7+
dest: '{{ zuul.executor.log_root }}'
8+
mode: pull
9+
copy_links: true
10+
verify_host: true
11+
rsync_opts:
12+
- --include=/logs/**
13+
- --include=*/
14+
- --exclude=*
15+
- --prune-empty-dirs
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
- hosts: all
2+
name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src
3+
from old job gate-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src-ubuntu-xenial
4+
tasks:
5+
6+
- name: Ensure legacy workspace directory
7+
file:
8+
path: '{{ ansible_user_dir }}/workspace'
9+
state: directory
10+
11+
- shell:
12+
cmd: |
13+
set -e
14+
set -x
15+
cat > clonemap.yaml << EOF
16+
clonemap:
17+
- name: openstack-infra/devstack-gate
18+
dest: devstack-gate
19+
EOF
20+
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
21+
git://git.openstack.org \
22+
openstack-infra/devstack-gate
23+
executable: /bin/bash
24+
chdir: '{{ ansible_user_dir }}/workspace'
25+
environment: '{{ zuul | zuul_legacy_vars }}'
26+
27+
- shell:
28+
cmd: |
29+
cat << 'EOF' >> ironic-extra-vars
30+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True"
31+
# Standardize VM size for each supported ramdisk
32+
case "tinyipa" in
33+
'tinyipa')
34+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384"
35+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa"
36+
;;
37+
'tinyipa256')
38+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256"
39+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa"
40+
;;
41+
'coreos')
42+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280"
43+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos"
44+
;;
45+
# if using a ramdisk without a known good value, use the devstack
46+
# default by not exporting any value for IRONIC_VM_SPECS_RAM
47+
esac
48+
49+
EOF
50+
chdir: '{{ ansible_user_dir }}/workspace'
51+
environment: '{{ zuul | zuul_legacy_vars }}'
52+
53+
- shell:
54+
cmd: |
55+
cat << 'EOF' >> ironic-extra-vars
56+
export DEVSTACK_GATE_TEMPEST_REGEX="ironic"
57+
58+
EOF
59+
chdir: '{{ ansible_user_dir }}/workspace'
60+
environment: '{{ zuul | zuul_legacy_vars }}'
61+
62+
- shell:
63+
cmd: |
64+
cat << 'EOF' >> ironic-vars-early
65+
# use tempest plugin
66+
if [[ "$ZUUL_BRANCH" != "master" ]] ; then
67+
# NOTE(jroll) if this is not a patch against master, then
68+
# fetch master to install the plugin
69+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'"
70+
else
71+
# on master, use the local change, so we can pick up any changes to the plugin
72+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'"
73+
fi
74+
export TEMPEST_CONCURRENCY=1
75+
76+
EOF
77+
chdir: '{{ ansible_user_dir }}/workspace'
78+
environment: '{{ zuul | zuul_legacy_vars }}'
79+
80+
- shell:
81+
cmd: |
82+
set -e
83+
set -x
84+
export PROJECTS="openstack/ironic $PROJECTS"
85+
export PROJECTS="openstack/ironic-lib $PROJECTS"
86+
export PROJECTS="openstack/ironic-python-agent $PROJECTS"
87+
export PROJECTS="openstack/python-ironicclient $PROJECTS"
88+
export PROJECTS="openstack/pyghmi $PROJECTS"
89+
export PROJECTS="openstack/virtualbmc $PROJECTS"
90+
export PYTHONUNBUFFERED=true
91+
export DEVSTACK_GATE_TEMPEST=1
92+
export DEVSTACK_GATE_IRONIC=1
93+
export DEVSTACK_GATE_NEUTRON=1
94+
export DEVSTACK_GATE_VIRT_DRIVER=ironic
95+
export DEVSTACK_GATE_CONFIGDRIVE=1
96+
export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool
97+
export BRANCH_OVERRIDE=default
98+
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
99+
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
100+
fi
101+
102+
if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then
103+
export DEVSTACK_GATE_TLSPROXY=1
104+
fi
105+
106+
if [ "agent_ipmitool" == "pxe_snmp" ] ; then
107+
# explicitly enable pxe_snmp driver
108+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp"
109+
fi
110+
111+
if [ "agent_ipmitool" == "redfish" ] ; then
112+
# When deploying with redfish we need to enable the "redfish"
113+
# hardware type
114+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish"
115+
fi
116+
117+
if [ "partition" == "wholedisk" ] ; then
118+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True"
119+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0"
120+
else
121+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False"
122+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1"
123+
fi
124+
125+
if [ -n "-src" ] ; then
126+
export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1
127+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True"
128+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False"
129+
else
130+
export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0
131+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False"
132+
fi
133+
134+
if [ "bios" == "uefi" ] ; then
135+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi"
136+
fi
137+
138+
export DEVSTACK_PROJECT_FROM_GIT=""
139+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1"
140+
141+
# Ensure the ironic-vars-EARLY file exists
142+
touch ironic-vars-early
143+
# Pull in the EARLY variables injected by the optional builders
144+
source ironic-vars-early
145+
146+
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic"
147+
148+
# Ensure the ironic-EXTRA-vars file exists
149+
touch ironic-extra-vars
150+
# Pull in the EXTRA variables injected by the optional builders
151+
source ironic-extra-vars
152+
153+
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
154+
./safe-devstack-vm-gate-wrap.sh
155+
executable: /bin/bash
156+
chdir: '{{ ansible_user_dir }}/workspace'
157+
environment: '{{ zuul | zuul_legacy_vars }}'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- hosts: primary
2+
tasks:
3+
4+
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5+
synchronize:
6+
src: '{{ ansible_user_dir }}/workspace/'
7+
dest: '{{ zuul.executor.log_root }}'
8+
mode: pull
9+
copy_links: true
10+
verify_host: true
11+
rsync_opts:
12+
- --include=/logs/**
13+
- --include=*/
14+
- --exclude=*
15+
- --prune-empty-dirs

0 commit comments

Comments
 (0)