-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move heat-templates-check job to zuul v3
Change-Id: Ie858c406b6a7d973f9632aa98360b7322758fc3a
- Loading branch information
Showing
6 changed files
with
86 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,11 @@ | ||
- hosts: all | ||
name: job for templates-devstack | ||
tasks: | ||
|
||
- name: Ensure legacy workspace directory | ||
file: | ||
path: '{{ ansible_user_dir }}/workspace' | ||
state: directory | ||
|
||
- shell: | ||
cmd: | | ||
set -e | ||
set -x | ||
cat > clonemap.yaml << EOF | ||
clonemap: | ||
- name: openstack/devstack-gate | ||
dest: devstack-gate | ||
EOF | ||
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ | ||
https://opendev.org \ | ||
openstack/devstack-gate | ||
executable: /bin/bash | ||
chdir: '{{ ansible_user_dir }}/workspace' | ||
environment: '{{ zuul | zuul_legacy_vars }}' | ||
|
||
- shell: | ||
cmd: | | ||
set -e | ||
set -x | ||
cat << 'EOF' >>"/tmp/dg-local.conf" | ||
[[local|localrc]] | ||
enable_plugin heat https://opendev.org/openstack/heat | ||
EOF | ||
executable: /bin/bash | ||
chdir: '{{ ansible_user_dir }}/workspace' | ||
environment: '{{ zuul | zuul_legacy_vars }}' | ||
|
||
- shell: | ||
cmd: | | ||
set -e | ||
set -x | ||
export PYTHONUNBUFFERED=true | ||
export DEVSTACK_GATE_TEMPEST=0 | ||
export PROJECTS="openstack/heat-agents $PROJECTS" | ||
function post_test_hook { | ||
cd $BASE/new/heat-templates/tools | ||
./post_test_hook.sh | ||
} | ||
export -f post_test_hook | ||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh | ||
./safe-devstack-vm-gate-wrap.sh | ||
executable: /bin/bash | ||
chdir: '{{ ansible_user_dir }}/workspace' | ||
environment: '{{ zuul | zuul_legacy_vars }}' | ||
# This is the default strategy, however since orchestrate-devstack requires | ||
# "linear", it is safer to enforce it in case this is running in an | ||
# environment configured with a different default strategy. | ||
strategy: linear | ||
roles: | ||
- orchestrate-devstack | ||
|
||
- hosts: controller | ||
roles: | ||
- run-heat-template-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
devstack_base_dir: /opt/stack | ||
tempest_test_timeout: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- name: prepare check env | ||
shell: | ||
cmd: | | ||
set -x | ||
source ${DEVSTACK_BASE_DIR}/devstack/openrc admin admin | ||
source ${DEVSTACK_BASE_DIR}/devstack/functions-common | ||
neutron_service=$(get_or_create_service "neutron" "network" "Neutron Service") | ||
get_or_create_endpoint $neutron_service "$REGION_NAME" "http://localhost" | ||
aodh_service=$(get_or_create_service "aodh" "alarming" "OpenStack Alarming Service") | ||
get_or_create_endpoint $aodh_service "$REGION_NAME" "http://localhost" | ||
mistral_service=$(get_or_create_service "mistral" "workflowv2" "Workflow Service v2") | ||
get_or_create_endpoint $mistral_service "$REGION_NAME" "http://localhost" | ||
senlin_service=$(get_or_create_service "senlin" "clustering" "Senlin Clustering Service") | ||
get_or_create_endpoint $senlin_service "$REGION_NAME" "http://localhost" | ||
monasca_service=$(get_or_create_service "monasca" "monitoring" "Monasca Monitoring Service") | ||
get_or_create_endpoint $monasca_service "$REGION_NAME" "http://localhost" | ||
zaqar_service=$(get_or_create_service "zaqar" "messaging" "Zaqar Service") | ||
get_or_create_endpoint $zaqar_service "$REGION_NAME" "http://localhost" | ||
designate_service=$(get_or_create_service "designate" "dns" "Designate DNS Service") | ||
get_or_create_endpoint $designate_service "$REGION_NAME" "http://localhost" | ||
barbican_service=$(get_or_create_service "barbican" "key-manager" "Barbican Service") | ||
get_or_create_endpoint $barbican_service "$REGION_NAME" "http://localhost" | ||
source ${DEVSTACK_BASE_DIR}/devstack/openrc demo demo | ||
{{ ansible_python.executable }} ${DEVSTACK_BASE_DIR}/heat-templates/tools/validate-templates ${DEVSTACK_BASE_DIR}/heat-templates | ||
executable: /bin/bash | ||
environment: | ||
DEVSTACK_BASE_DIR: "{{ devstack_base_dir }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters