Skip to content

Commit 447845a

Browse files
committed
Support enabling Zun on devstack
Gophercloud will add support for OpenStack Zun and it is using OpenLab for testing. Therefore, we need to enable Zun in devstack jobs. The original request comes from this PR: gophercloud/gophercloud#858
1 parent ea0ec63 commit 447845a

File tree

3 files changed

+23
-0
lines changed
  • playbooks/gophercloud-acceptance-test
  • roles

3 files changed

+23
-0
lines changed

playbooks/gophercloud-acceptance-test/run.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
enable_services:
77
- 'manila'
88
- 'designate'
9+
- 'zun'
910
- install-devstack
1011
tasks:
1112
- shell:

roles/create-devstack-local-conf/tasks/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,22 @@
130130
environment: '{{ zuul | zuul_legacy_vars }}'
131131
when:
132132
- '"fwaas-v2" in enable_services'
133+
134+
- name: create devstack local conf with zun enabled
135+
shell:
136+
cmd: |
137+
set -e
138+
set -x
139+
cat << EOF >> /tmp/dg-local.conf
140+
enable_service zun-api,zun-compute,zun-wsproxy
141+
enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container
142+
KURYR_CAPABILITY_SCOPE=global
143+
KURYR_ETCD_PORT=2379
144+
enable_plugin kuryr-libnetwork https://git.openstack.org/openstack/kuryr-libnetwork
145+
enable_plugin zun https://git.openstack.org/openstack/zun
146+
EOF
147+
executable: /bin/bash
148+
chdir: '{{ ansible_user_dir }}/workspace'
149+
environment: '{{ zuul | zuul_legacy_vars }}'
150+
when:
151+
- '"zun" in enable_services'

roles/install-devstack/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
export PROJECTS="openstack/designate $PROJECTS"
1717
export PROJECTS="openstack/python-manilaclient openstack/manila-tempest-plugin $PROJECTS"
1818
export PROJECTS="openstack/barbican openstack/python-barbicanclient $PROJECTS"
19+
export PROJECTS="openstack/devstack-plugin-container $PROJECTS"
20+
export PROJECTS="openstack/kuryr-libnetwork $PROJECTS"
21+
export PROJECTS="openstack/zun $PROJECTS"
1922
2023
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
2124
./safe-devstack-vm-gate-wrap.sh

0 commit comments

Comments
 (0)